mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-02 01:19:31 +00:00
Added seperate routes folder and dynamic route loader
This commit is contained in:
14
routes/main.js
Normal file
14
routes/main.js
Normal file
@@ -0,0 +1,14 @@
|
||||
const express = require('express');
|
||||
const router = express.Router();
|
||||
|
||||
router.get('/', (req, res) => {
|
||||
return res.render('index', {
|
||||
title: 'Stratos - Home'
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
module.exports = {
|
||||
root: '/',
|
||||
router: router
|
||||
};
|
||||
Reference in New Issue
Block a user