hedgedoc/old_src/lib/web/middleware/codiMDVersion.ts
David Mehren 7b9f9a487b
Move old backend code to old_src folder
Signed-off-by: David Mehren <git@herrmehren.de>
2020-08-20 19:43:05 +02:00

9 lines
257 B
TypeScript

import { config } from '../../config'
import { NextFunction, Request, Response } from 'express'
export function codiMDVersion (req: Request, res: Response, next: NextFunction): void {
res.set({
'CodiMD-Version': config.version
})
return next()
}