mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-19 01:35:18 -04:00
Refactored middleware -> Typescript
Signed-off-by: Yannick Bungers <git@innay.de> Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
parent
a36c36d86a
commit
6cbd436454
8 changed files with 52 additions and 57 deletions
9
lib/web/middleware/codiMDVersion.ts
Normal file
9
lib/web/middleware/codiMDVersion.ts
Normal 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()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue