Skip to content

Commit 35c1415

Browse files
committed
Update app.module.ts to exclude AuthMiddleware for document-processor routes
- Modified the middleware configuration in backend/src/app.module.ts to exclude the AuthMiddleware for routes under 'document-processor', allowing unauthenticated access to document processing endpoints.
1 parent fbc5c20 commit 35c1415

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

backend/src/app.module.ts

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

0 commit comments

Comments
 (0)