Nestjs疑问

1.使用控制器做参数中间件时版本号如何拦截

consumer.apply(Logger).forRoutes(XiaomanController)
consumer.apply(Logger).forRoutes({path:'v1/xiaoman',method:RequestMethod.GET})
 
http://localhost:3000/xiaoman
http://localhost:3000/v1/xiaoman
posted @ 2023-05-19 13:17  泠风lj  阅读(15)  评论(0)    收藏  举报