mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-01 22:59:28 +00:00
Splitting admin routes into pages to prepare for addition of functionality
This commit is contained in:
14
routes/class.js
Normal file
14
routes/class.js
Normal file
@@ -0,0 +1,14 @@
|
||||
const express = require('express');
|
||||
const router = express.Router();
|
||||
|
||||
router.get('/classes', (req, res) => {
|
||||
return res.render('classes', {
|
||||
title: 'Stratos - Classes',
|
||||
current: 'Classes'
|
||||
});
|
||||
});
|
||||
|
||||
module.exports = {
|
||||
root: '/admin',
|
||||
router: router
|
||||
};
|
||||
Reference in New Issue
Block a user