Refactored middleware -> Typescript

Signed-off-by: Yannick Bungers <git@innay.de>
Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
Yannick Bungers 2020-04-12 21:20:03 +02:00 committed by David Mehren
parent a36c36d86a
commit 6cbd436454
No known key found for this signature in database
GPG key ID: 6017AF117F9756CB
8 changed files with 52 additions and 57 deletions

View file

@ -0,0 +1,9 @@
import { config } from '../../config'
import { NextFunction, Request, Response } from 'express'
export default function version (req: Request, res: Response, next: NextFunction) {
res.set({
'CodiMD-Version': config.version
})
return next()
}