Skip to content

Commit c0f358f

Browse files
committed
Refactor backend/src/app.module.ts to streamline controller definitions and improve code formatting. Consolidated controller array into a single line and adjusted middleware exclusion for better readability.
1 parent 2e9fcf5 commit c0f358f

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

backend/src/app.module.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,14 @@ import { TextractModule } from './modules/textract.module';
2222
ReportsModule,
2323
TextractModule,
2424
],
25-
controllers: [
26-
AppController,
27-
HealthController,
28-
PerplexityController,
29-
UserController,
30-
],
25+
controllers: [AppController, HealthController, PerplexityController, UserController],
3126
providers: [AppService, AwsSecretsService, AwsBedrockService, PerplexityService],
3227
})
3328
export class AppModule implements NestModule {
3429
configure(consumer: MiddlewareConsumer) {
3530
consumer
3631
.apply(AuthMiddleware)
37-
.exclude(
38-
{ path: 'health', method: RequestMethod.GET },
39-
)
32+
.exclude({ path: 'health', method: RequestMethod.GET })
4033
.forRoutes('*');
4134
}
4235
}

0 commit comments

Comments
 (0)