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

14 lines
418 B
JavaScript
Raw Normal View History

2022-06-11 19:53:25 +02:00
const config = require('../config');
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, instance_config: config });
2021-09-02 11:27:28 +02:00
});
staticRoutes.get('/about', (req, res, next) => {
return res.render('about', { user_preferences: req.cookies, instance_config: config });
2021-09-02 11:27:28 +02:00
});
module.exports = staticRoutes;