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

14 lines
418 B
JavaScript

const config = require('../config');
const staticRoutes = require('express').Router();
staticRoutes.get('/privacy', (req, res, next) => {
return res.render('privacypolicy', { user_preferences: req.cookies, instance_config: config });
});
staticRoutes.get('/about', (req, res, next) => {
return res.render('about', { user_preferences: req.cookies, instance_config: config });
});
module.exports = staticRoutes;