Add files page
This commit is contained in:
1 parent
f1c3e21ba3
commit
41229ffb85
12 files changed
+521
-8
No files matched your search
@@ -128,6 +128,13 @@ router.post("/logout", async ctx => {
|
||||
});
|
||||
});
|
||||
|
||||
koa.use(async (ctx, next) => {
|
||||
if (ctx.request.type === "application/octet-stream")
|
||||
ctx.disableBodyParser = true;
|
||||
|
||||
return next();
|
||||
});
|
||||
|
||||
koa.use(koaBodyParser());
|
||||
router.use("/api", api.routes(), api.allowedMethods());
|
||||
|
||||
|
||||
Reference in new issue
Block a user