import { MiddlewareConsumer, Module, NestModule, RequestMethod } from '@nestjs/common'; import { InputGrpcClientModule } from './inputs/input-grpc-client.module'; import { UsersGrpcClientModule } from './users-grpc-client/users-grpc-client.module'; import { OutputsModule } from './outputs/outputs.module'; import { EnrichmentModule } from './enrichment/enrichment.module'; import { TransformationsModule } from './transformations/transformations.module'; import { PipelinesModule } from './pipelines/pipelines.module'; import { RestInputsModule } from './rest/rest-inputs/rest-inputs.module'; import { RestOutputsModule } from './rest/rest-outputs/rest-outputs.module'; import { RestEnrichmentsModule } from './rest/rest-enrichments/rest-enrichments.module'; import { RestTransformationsModule } from './rest/rest-transformations/rest-transformations.module'; import { RestPipelinesModule } from './rest/rest-pipelines/rest-pipelines.module'; import { RestUserModule } from './rest/rest-user/rest-user.module'; import { RestFactoryModule } from './rest/rest-factory/rest-factory.module'; import { LoggerMiddleware } from './middlewares/authentication'; import { RestInputsController } from './rest/rest-inputs/rest-inputs.controller'; import { RestOutputsController } from './rest/rest-outputs/rest-outputs.controller'; import { RestTransformationsController } from './rest/rest-transformations/rest-transformations.controller'; import { RestPipelinesController } from './rest/rest-pipelines/rest-pipelines.controller'; import { RestEnrichmentsController } from './rest/rest-enrichments/rest-enrichments.controller'; import { RestFactoryController } from './rest/rest-factory/rest-factory.controller'; import { HealthModule } from './health/health.module'; @Module({ imports: [ RestInputsModule, RestOutputsModule, RestEnrichmentsModule, RestTransformationsModule, RestPipelinesModule, RestUserModule, RestFactoryModule, HealthModule, // InputGrpcClientModule, //OutputsModule, //EnrichmentModule, //TransformationsModule, //PipelinesModule ], controllers: [], providers: [], }) export class AppModule implements NestModule{ configure(consumer: MiddlewareConsumer) { consumer .apply(LoggerMiddleware) .forRoutes(RestInputsController,RestOutputsController,RestTransformationsController,RestPipelinesController,RestEnrichmentsController,RestFactoryController) } }