revert it for now

This commit is contained in:
cutestnekoaqua 2023-02-11 00:19:43 +01:00
parent 450c92f3e7
commit 8fdd3e09c6
No known key found for this signature in database
GPG key ID: 6BF0964A5069C1E0

View file

@ -55,10 +55,6 @@ app.use(
}), }),
); );
app.use(
upload.any()
);
// Init router // Init router
const router = new Router(); const router = new Router();
@ -71,6 +67,7 @@ for (const endpoint of [...endpoints, ...compatibility]) {
if (endpoint.meta.requireFile) { if (endpoint.meta.requireFile) {
router.post( router.post(
`/${endpoint.name}`, `/${endpoint.name}`,
upload.single("file"),
handler.bind(null, endpoint), handler.bind(null, endpoint),
); );
} else { } else {