diff --git a/packages/server/src/startup.ts b/packages/server/src/startup.ts index f9b5974eb2..abe931f503 100644 --- a/packages/server/src/startup.ts +++ b/packages/server/src/startup.ts @@ -38,6 +38,7 @@ async function initRoutes(app: Koa) { // api routes app.use(api.router.routes()) + app.use(api.router.allowedMethods()) } async function initPro() {