fix: in setupPageRoute helper, buildHeader after plugin hooks have fired

To allow for a plugin to call doLogin and have it properly reflect in the header
v1.18.x
Julian Lam 4 years ago
parent 73dc64d9ff
commit 984c9dd915

@ -15,8 +15,8 @@ helpers.setupPageRoute = function (router, name, middleware, middlewares, contro
name, name,
middleware.busyCheck, middleware.busyCheck,
middleware.applyCSRF, middleware.applyCSRF,
middleware.buildHeader,
middlewares, middlewares,
middleware.buildHeader,
helpers.tryRoute(controller) helpers.tryRoute(controller)
); );
router.get(`/api${name}`, middlewares, helpers.tryRoute(controller)); router.get(`/api${name}`, middlewares, helpers.tryRoute(controller));

Loading…
Cancel
Save