We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d93a3c4 commit fb242c9Copy full SHA for fb242c9
src/app/api/admin/route.ts renamed to src/app/api/upload/route.ts
src/app/upload/page.tsx
@@ -124,7 +124,7 @@ const Page = () => {
124
(async () => {
125
try {
126
const response = await axios.post<PostPDFToCloudinary>(
127
- "/api/admin",
+ "/api/upload",
128
formData,
129
);
130
} catch (error: unknown) {
src/middleware.ts
@@ -8,7 +8,7 @@ const ratelimit = new Ratelimit({
8
});
9
10
export const config = {
11
- matcher: '/api/mail',
+ matcher: '/api/upload',
12
};
13
14
export default async function middleware(request: NextRequest) {
0 commit comments