Skip to content

Commit fb242c9

Browse files
change endpoint to upload
1 parent d93a3c4 commit fb242c9

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed
File renamed without changes.

src/app/upload/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ const Page = () => {
124124
(async () => {
125125
try {
126126
const response = await axios.post<PostPDFToCloudinary>(
127-
"/api/admin",
127+
"/api/upload",
128128
formData,
129129
);
130130
} catch (error: unknown) {

src/middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const ratelimit = new Ratelimit({
88
});
99

1010
export const config = {
11-
matcher: '/api/mail',
11+
matcher: '/api/upload',
1212
};
1313

1414
export default async function middleware(request: NextRequest) {

0 commit comments

Comments
 (0)