|
|
@ -3,7 +3,7 @@
|
|
|
|
var helpers = {};
|
|
|
|
var helpers = {};
|
|
|
|
|
|
|
|
|
|
|
|
helpers.setupPageRoute = function (router, name, middleware, middlewares, controller) {
|
|
|
|
helpers.setupPageRoute = function (router, name, middleware, middlewares, controller) {
|
|
|
|
middlewares = middlewares.concat([middleware.registrationComplete, middleware.pageView, middleware.pluginHooks]);
|
|
|
|
middlewares = [middleware.registrationComplete, middleware.pageView, middleware.pluginHooks].concat(middlewares);
|
|
|
|
|
|
|
|
|
|
|
|
router.get(name, middleware.busyCheck, middleware.buildHeader, middlewares, controller);
|
|
|
|
router.get(name, middleware.busyCheck, middleware.buildHeader, middlewares, controller);
|
|
|
|
router.get('/api' + name, middlewares, controller);
|
|
|
|
router.get('/api' + name, middlewares, controller);
|
|
|
|