diff --git a/index.js b/index.js index d2f670da..b45b0686 100644 --- a/index.js +++ b/index.js @@ -38,6 +38,7 @@ module.exports.makeApp = function () { const themeName = config.get('THEME') if (themeName) { app.use('/static', express.static(path.join(__dirname, `/${themeDir}/${themeName}/public`))) + require(`./${themeDir}/${themeName}/routes.js`)(app) } // Default assets app.use('/static', express.static(path.join(__dirname, '/public'))) diff --git a/themes/eds/routes.js b/themes/eds/routes.js new file mode 100644 index 00000000..1dd33381 --- /dev/null +++ b/themes/eds/routes.js @@ -0,0 +1,3 @@ +module.exports = function (app) { + // Add custom routes and controller logic here +} diff --git a/themes/example/routes.js b/themes/example/routes.js new file mode 100644 index 00000000..1dd33381 --- /dev/null +++ b/themes/example/routes.js @@ -0,0 +1,3 @@ +module.exports = function (app) { + // Add custom routes and controller logic here +} diff --git a/themes/opendk/routes.js b/themes/opendk/routes.js new file mode 100644 index 00000000..1dd33381 --- /dev/null +++ b/themes/opendk/routes.js @@ -0,0 +1,3 @@ +module.exports = function (app) { + // Add custom routes and controller logic here +}