Update to indicate version in status API header
This commit is contained in:
parent
e629800457
commit
011d043b2a
1 changed files with 2 additions and 1 deletions
3
app.js
3
app.js
|
@ -234,7 +234,8 @@ app.get('/status', function (req, res, next) {
|
||||||
realtime.getStatus(function (data) {
|
realtime.getStatus(function (data) {
|
||||||
res.set({
|
res.set({
|
||||||
'Cache-Control': 'private', // only cache by client
|
'Cache-Control': 'private', // only cache by client
|
||||||
'X-Robots-Tag': 'noindex, nofollow' // prevent crawling
|
'X-Robots-Tag': 'noindex, nofollow', // prevent crawling
|
||||||
|
'HackMD-Version': config.version
|
||||||
})
|
})
|
||||||
res.send(data)
|
res.send(data)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue