mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-19 09:45:37 -04:00
Move lib and test into src directory
Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
241c418ea7
commit
fab2607e4d
98 changed files with 1 additions and 3 deletions
9
src/lib/web/middleware/codiMDVersion.ts
Normal file
9
src/lib/web/middleware/codiMDVersion.ts
Normal file
|
@ -0,0 +1,9 @@
|
|||
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()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue