mirror of
https://codeberg.org/teddit/teddit.git
synced 2026-03-05 13:30:33 -05:00
Update static.js to pass instance_config to template
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
const staticRoutes = require('express').Router();
|
const staticRoutes = require('express').Router();
|
||||||
|
|
||||||
staticRoutes.get('/privacy', (req, res, next) => {
|
staticRoutes.get('/privacy', (req, res, next) => {
|
||||||
return res.render('privacypolicy', { user_preferences: req.cookies });
|
return res.render('privacypolicy', { user_preferences: req.cookies, instance_config: config });
|
||||||
});
|
});
|
||||||
|
|
||||||
staticRoutes.get('/about', (req, res, next) => {
|
staticRoutes.get('/about', (req, res, next) => {
|
||||||
return res.render('about', { user_preferences: req.cookies });
|
return res.render('about', { user_preferences: req.cookies, instance_config: config });
|
||||||
});
|
});
|
||||||
|
|
||||||
module.exports = staticRoutes;
|
module.exports = staticRoutes;
|
||||||
|
|||||||
Reference in New Issue
Block a user