hedgedoc/lib/web/middleware/codiMDVersion.ts

10 lines
257 B
TypeScript
Raw Normal View History

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