import { Injectable , NestMiddleware } from '@nestjs/common' ; import { Request , Response } from 'express' ; @ Injectable ( ) export class LoggerMiddleware implements NestMiddleware { use ( req , res , next ) { const { method , path } = req ; console . log ( `${ method } ${ path }` ) ; next ( ) ; } }