revert it for now
This commit is contained in:
parent
1b3308bd4b
commit
0f928bfb23
1 changed files with 1 additions and 4 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue