From 0f928bfb23f8ce0d6162a6856f474853b97ff57c Mon Sep 17 00:00:00 2001 From: cutestnekoaqua Date: Sat, 11 Feb 2023 00:19:43 +0100 Subject: [PATCH] revert it for now --- packages/backend/src/server/api/index.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/backend/src/server/api/index.ts b/packages/backend/src/server/api/index.ts index 593c7a284..1096d995b 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 {