mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 17:56:30 -05:00
a762928e97
A little minor change, by moving the CodiMD version header in its own middleware. Should simplify to determine the version number of the Backend in future. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
10 lines
171 B
JavaScript
10 lines
171 B
JavaScript
'use strict'
|
|
|
|
const config = require('../../config')
|
|
|
|
module.exports = function (req, res, next) {
|
|
res.set({
|
|
'CodiMD-Version': config.version
|
|
})
|
|
return next()
|
|
}
|