mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-06 22:20:55 +03:00
add a dynamic js script for page config
This commit is contained in:
@@ -69,9 +69,15 @@ app.use('/l20n', express.static(L20N));
|
||||
app.use('/locales', express.static(LOCALES));
|
||||
|
||||
app.get('/', (req, res) => {
|
||||
res.render('index', {
|
||||
res.render('index');
|
||||
});
|
||||
|
||||
app.get('/jsconfig.js', (req, res) => {
|
||||
res.set('Content-Type', 'application/javascript');
|
||||
res.render('jsconfig', {
|
||||
trackerId: conf.analytics_id,
|
||||
dsn: conf.sentry_id
|
||||
dsn: conf.sentry_id,
|
||||
layout: false
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user