user create wip
This commit is contained in:
9
api/src/framework/express/middleware.ts
Normal file
9
api/src/framework/express/middleware.ts
Normal file
@ -0,0 +1,9 @@
|
||||
import { RequestHandler } from "express";
|
||||
import { randomUUID } from "crypto";
|
||||
|
||||
export function BeforeEach(): RequestHandler {
|
||||
return (req, res, next) => {
|
||||
req.headers["request-id"] = randomUUID();
|
||||
next();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user