mirror of
https://github.com/comatory/fb2iCal
synced 2025-06-05 22:09:25 +02:00
add version information to about page
This commit is contained in:
@@ -26,6 +26,8 @@ const limiter = rateLimit({
|
||||
windowMs: 60 * 1000,
|
||||
max: 10,
|
||||
})
|
||||
const pkg = require('../package.json')
|
||||
const version = pkg.version || ''
|
||||
|
||||
// Force app to always redirect to HTTPS
|
||||
// use when you can't configure web server
|
||||
@@ -63,7 +65,7 @@ app.get('/error', (req, res) => {
|
||||
})
|
||||
|
||||
app.get('/about', (req, res) => {
|
||||
res.render('about')
|
||||
res.render('about', { version })
|
||||
})
|
||||
|
||||
// NOTE: Capture all unkown URLs
|
||||
|
Reference in New Issue
Block a user