mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 14:44:43 -04:00
Do final internal renameing
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>
This commit is contained in:
parent
23c33c0c04
commit
a762928e97
4 changed files with 15 additions and 6 deletions
10
lib/web/middleware/codiMDVersion.js
Normal file
10
lib/web/middleware/codiMDVersion.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
'use strict'
|
||||
|
||||
const config = require('../../config')
|
||||
|
||||
module.exports = function (req, res, next) {
|
||||
res.set({
|
||||
'CodiMD-Version': config.version
|
||||
})
|
||||
return next()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue