mirror of
https://github.com/github/codeql.git
synced 2025-12-20 18:56:32 +01:00
12 lines
423 B
TypeScript
12 lines
423 B
TypeScript
import { Injectable, NestMiddleware } from '@nestjs/common';
|
|
import { Response, NextFunction } from 'express';
|
|
import { CustomRequest } from '@randomPackage/request';
|
|
|
|
@Injectable()
|
|
export class LoggerMiddleware implements NestMiddleware {
|
|
// The request can be a custom type that extends the express Request
|
|
use(req: CustomRequest, res: Response, next: NextFunction) {
|
|
console.log(req.query.abc);
|
|
next();
|
|
}
|
|
} |