Open
Description
Using NestJs Middleware Consumers is broken with this module. I'm trying to globally add middleware to the admin module with something like:
@Module({
imports: [
// whatever
AdminModule.createAdmin({
adminBroOptions: {
rootPath: 'admin',
// etc
}
})
]
})
export class AppModule implements NestModule {
confgure(consumer: MiddlewareConsumer) {
consumer.apply(passport.authenticate('jwt').forRoutes({path: 'admin*', method: RequestMethod.ALL});
}
}
But the middleware is never executed. I'm reasonably sure this is due to the middleware reordering in express.loader.ts because when I comment it out, the middleware is executed as expected.
Metadata
Metadata
Assignees
Labels
No labels