1- import { Module , NestModule , MiddlewareConsumer } from '@nestjs/common' ;
1+ import { Module , NestModule } from '@nestjs/common' ;
22import { ConfigModule } from '@nestjs/config' ;
33import configuration from './config/configuration' ;
44import { AppController } from './app.controller' ;
55import { AppService } from './app.service' ;
66import { AwsSecretsService } from './services/aws-secrets.service' ;
77import { PerplexityService } from './services/perplexity.service' ;
88import { PerplexityController } from './controllers/perplexity/perplexity.controller' ;
9- import { AuthModule } from './auth/auth.module' ;
109import { UserController } from './user/user.controller' ;
11- import { AuthMiddleware } from './auth/auth.middleware' ;
12- import { UserModule } from './user/user.module' ;
1310import { ReportsModule } from './reports/reports.module' ;
1411
1512@Module ( {
@@ -18,15 +15,14 @@ import { ReportsModule } from './reports/reports.module';
1815 isGlobal : true ,
1916 load : [ configuration ] ,
2017 } ) ,
21- AuthModule ,
22- UserModule ,
2318 ReportsModule ,
2419 ] ,
2520 controllers : [ AppController , PerplexityController , UserController ] ,
2621 providers : [ AppService , AwsSecretsService , PerplexityService ] ,
2722} )
2823export class AppModule implements NestModule {
29- configure ( consumer : MiddlewareConsumer ) {
30- consumer . apply ( AuthMiddleware ) . forRoutes ( '*' ) ;
24+ configure ( ) {
25+ // Add your middleware configuration here if needed
26+ // If you don't need middleware, you can leave this empty
3127 }
3228}
0 commit comments