-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nest Router with Middleware not work #5
Comments
Hi @WClouds |
@shekohex I still can't get it to work. For example, in the main App Module I set up the routes: // app-module.ts
However when I do the following in MyModule, the middlewares are not actually being set up (called) for the module's routes: // my-module.ts // my-controller.ts
Calling GET my/path doesn't trigger MyMiddleware. I tried moving the routes definition to MyModule, but that doesn't work either. |
@Metheny80 please see the README. but you should instead use this code
|
If I use nest-router, when I add a logger middleware for ApplicationModule, the middleware not work.
But when I remove nest-router, middleware worked. Is there any conflicts between nest-router and middleware?
The text was updated successfully, but these errors were encountered: