codimd/lib/middleware/codiMDVersion.js

11 lines
168 B
JavaScript

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