Update to indicate version in status API header

This commit is contained in:
Wu Cheng-Han 2017-03-22 23:44:09 +08:00
parent e629800457
commit 011d043b2a
1 changed files with 2 additions and 1 deletions

3
app.js
View File

@ -234,7 +234,8 @@ app.get('/status', function (req, res, next) {
realtime.getStatus(function (data) {
res.set({
'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)
})