diff --git a/routes/index.js b/routes/index.js index c07697b..a28d127 100644 --- a/routes/index.js +++ b/routes/index.js @@ -1,7 +1,9 @@ const overridingRoutes = require('./overides'); +const staticRoutes = require('./static'); const allRoutes = require('express').Router(); allRoutes.use(overridingRoutes); +allRoutes.use(staticRoutes); module.exports = allRoutes; diff --git a/routes/static.js b/routes/static.js new file mode 100644 index 0000000..62485fb --- /dev/null +++ b/routes/static.js @@ -0,0 +1,11 @@ +const staticRoutes = require('express').Router(); + +staticRoutes.get('/privacy', (req, res, next) => { + return res.render('privacypolicy', { user_preferences: req.cookies }); +}); + +staticRoutes.get('/about', (req, res, next) => { + return res.render('about', { user_preferences: req.cookies }); +}); + +module.exports = staticRoutes;