Init
This commit is contained in:
commit
0029086b3f
148 changed files with 19047 additions and 0 deletions
11
packages/api/src/middleware/log-route.ts
Normal file
11
packages/api/src/middleware/log-route.ts
Normal file
|
@ -0,0 +1,11 @@
|
|||
import { NextFunction, Response } from 'express';
|
||||
import { RequestContext } from '../util/request-context.type';
|
||||
|
||||
export const logRoute = (
|
||||
req: RequestContext,
|
||||
res: Response,
|
||||
next: NextFunction,
|
||||
) => {
|
||||
console.log(`Request: ${req.method} ${req.originalUrl}`);
|
||||
next();
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue