mirror of
https://github.com/status-im/codimd.git
synced 2025-02-11 23:36:21 +00:00
ts: lib/middleware/codiMDVersion.js
Signed-off-by: Raccoon <raccoon@hackmd.io>
This commit is contained in:
parent
758ffd462a
commit
68439de268
@ -1,10 +0,0 @@
|
||||
'use strict'
|
||||
|
||||
const config = require('../config')
|
||||
|
||||
module.exports = function (req, res, next) {
|
||||
res.set({
|
||||
'CodiMD-Version': config.version
|
||||
})
|
||||
return next()
|
||||
}
|
9
lib/middleware/codiMDVersion.ts
Normal file
9
lib/middleware/codiMDVersion.ts
Normal file
@ -0,0 +1,9 @@
|
||||
import * as config from "../config";
|
||||
import {Request, Response} from "express";
|
||||
|
||||
export = function (req: Request, res: Response, next) {
|
||||
res.set({
|
||||
'CodiMD-Version': config.version
|
||||
})
|
||||
return next()
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user