1
0
mirror of https://github.com/matt-fidd/stratos.git synced 2026-01-01 22:39:26 +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

18
routes/admin.js Normal file
View File

@@ -0,0 +1,18 @@
const express = require('express');
const router = express.Router();
router.get('/', (req, res) => {
return res.redirect('/admin/dashboard');
});
router.get('/dashboard', (req, res) => {
return res.render('dashboard', {
title: 'Stratos - Dashboard'
});
});
module.exports = {
root: '/admin',
router: router
};