codimd/lib/middleware/codiMDVersion.ts

10 lines
209 B
TypeScript
Raw Normal View History

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