Skip to content

Commit f5faae9

Browse files
committed
Refactor middleware configuration in backend/src/app.module.ts
- Consolidated the middleware application for AuthMiddleware in backend/src/app.module.ts to improve readability while maintaining the exclusion of document-processor routes.
1 parent 35c1415 commit f5faae9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

backend/src/app.module.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ import { DocumentProcessorModule } from './document-processor/document-processor
2626
})
2727
export class AppModule implements NestModule {
2828
configure(consumer: MiddlewareConsumer) {
29-
consumer
30-
.apply(AuthMiddleware)
31-
.exclude('document-processor/(.*)')
32-
.forRoutes('*');
29+
consumer.apply(AuthMiddleware).exclude('document-processor/(.*)').forRoutes('*');
3330
}
3431
}

0 commit comments

Comments
 (0)