diff --git a/src/routes/helpers.js b/src/routes/helpers.js index a1133738a7..f9fd7ba47e 100644 --- a/src/routes/helpers.js +++ b/src/routes/helpers.js @@ -15,8 +15,8 @@ helpers.setupPageRoute = function (router, name, middleware, middlewares, contro name, middleware.busyCheck, middleware.applyCSRF, - middleware.buildHeader, middlewares, + middleware.buildHeader, helpers.tryRoute(controller) ); router.get(`/api${name}`, middlewares, helpers.tryRoute(controller));