1
0
mirror of https://github.com/matt-fidd/stratos.git synced 2026-01-01 20:39:28 +00:00

Added dashboard page

This commit is contained in:
2022-02-04 23:44:05 +00:00
parent 15fd143477
commit e07e323bd8
7 changed files with 217 additions and 5 deletions

5
app.js
View File

@@ -80,6 +80,11 @@ async function main() {
}
}));
app.get('*', (req, res, next) => {
req.app.locals.layout = 'main';
next();
});
app.get('/admin/*', (req, res, next) => {
req.app.locals.layout = 'admin';
next();