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,
|
windowMs: 60 * 1000,
|
||||||
max: 10,
|
max: 10,
|
||||||
})
|
})
|
||||||
|
const pkg = require('../package.json')
|
||||||
|
const version = pkg.version || ''
|
||||||
|
|
||||||
// Force app to always redirect to HTTPS
|
// Force app to always redirect to HTTPS
|
||||||
// use when you can't configure web server
|
// use when you can't configure web server
|
||||||
@@ -63,7 +65,7 @@ app.get('/error', (req, res) => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
app.get('/about', (req, res) => {
|
app.get('/about', (req, res) => {
|
||||||
res.render('about')
|
res.render('about', { version })
|
||||||
})
|
})
|
||||||
|
|
||||||
// NOTE: Capture all unkown URLs
|
// NOTE: Capture all unkown URLs
|
||||||
|
@@ -9,6 +9,8 @@
|
|||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
<h3>Version information</h3>
|
||||||
|
<code><%= version %></code>
|
||||||
<h2>About the project</h2>
|
<h2>About the project</h2>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
Reference in New Issue
Block a user