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

3
app.js
View file

@ -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)
}) })