codimd/lib/middleware/codiMDVersion.ts
Raccoon 68439de268
ts: lib/middleware/codiMDVersion.js
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:21 +08:00

10 lines
209 B
TypeScript

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()
}