diff --git a/packages/backend/src/server/api/index.ts b/packages/backend/src/server/api/index.ts index 593c7a284c..1096d995bf 100644 --- a/packages/backend/src/server/api/index.ts +++ b/packages/backend/src/server/api/index.ts @@ -55,10 +55,6 @@ app.use( }), ); -app.use( - upload.any() -); - // Init router const router = new Router(); @@ -71,6 +67,7 @@ for (const endpoint of [...endpoints, ...compatibility]) { if (endpoint.meta.requireFile) { router.post( `/${endpoint.name}`, + upload.single("file"), handler.bind(null, endpoint), ); } else {