1
0
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:
2022-01-31 10:15:46 +00:00
parent a41d0d37d8
commit a28862c9f1
2 changed files with 39 additions and 5 deletions

14
routes/main.js Normal file
View 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
};