summaryrefslogtreecommitdiff
path: root/lib/web/middleware
diff options
context:
space:
mode:
Diffstat (limited to 'lib/web/middleware')
-rw-r--r--lib/web/middleware/codiMDVersion.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/web/middleware/codiMDVersion.js b/lib/web/middleware/codiMDVersion.js
new file mode 100644
index 00000000..e7775876
--- /dev/null
+++ b/lib/web/middleware/codiMDVersion.js
@@ -0,0 +1,10 @@
+'use strict'
+
+const config = require('../../config')
+
+module.exports = function (req, res, next) {
+ res.set({
+ 'CodiMD-Version': config.version
+ })
+ return next()
+}