Skip to content

Commit 495525a

Browse files
authored
Merge pull request #52 from ModusCreateOrg/ADE-152
[ADE-152] exclude document-processor routes from auth middleware
2 parents 5c5cbbf + f5faae9 commit 495525a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/src/app.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ 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.apply(AuthMiddleware).exclude('document-processor/(.*)').forRoutes('*');
3030
}
3131
}

0 commit comments

Comments
 (0)