Only authorize allowed method

This commit is contained in:
Aurélien Georget 2016-10-24 18:48:37 +02:00
parent 6b9c4d7629
commit 7b09d9f539

View File

@ -128,6 +128,7 @@ module.exports = strapi => {
// Let the router use our routes and allowed methods.
strapi.app.use(strapi.router.middleware());
strapi.app.use(strapi.router.router.allowedMethods());
// Handle router errors.
strapi.app.use(function * (next) {