codimd/lib/web/middleware/codiMDVersion.js

11 lines
171 B
JavaScript
Raw Normal View History

'use strict'
const config = require('../../config')
module.exports = function (req, res, next) {
res.set({
'CodiMD-Version': config.version
})
return next()
}