Make use of 405 when appropriate (#13168)
This commit is contained in:
parent
e79e7c7cec
commit
5b09a130cc
|
@ -38,6 +38,7 @@ async function initRoutes(app: Koa) {
|
||||||
|
|
||||||
// api routes
|
// api routes
|
||||||
app.use(api.router.routes())
|
app.use(api.router.routes())
|
||||||
|
app.use(api.router.allowedMethods())
|
||||||
}
|
}
|
||||||
|
|
||||||
async function initPro() {
|
async function initPro() {
|
||||||
|
|
Loading…
Reference in New Issue