teddit-reddit-frontend-alte.../routes/static.js

12 lines
330 B
JavaScript
Raw Normal View History

2021-09-02 11:27:28 +02:00
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;