Skip to content

Commit

Permalink
Merge pull request #35 from arati-tekdi/main
Browse files Browse the repository at this point in the history
Added framework and channel related API
  • Loading branch information
arati-tekdi authored Oct 18, 2024
2 parents eb774a7 + 307761a commit 563bfd9
Show file tree
Hide file tree
Showing 4 changed files with 336 additions and 65 deletions.
19 changes: 11 additions & 8 deletions src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,28 @@ import { JwtModule } from '@nestjs/jwt';
import { JwtStrategy } from './common/guards/jwt.strategy';
import { TypeOrmModule } from '@nestjs/typeorm';
import { UserRolesMapping } from './common/entities/UserRoleMapping.entity';
import { UserTenantMapping } from './common/entities/UserTenantMapping.entity'
import { UserTenantMapping } from './common/entities/UserTenantMapping.entity';
import { PermissionsService } from './common/service/permissions.service';
import { GatewayService } from './middleware/gateway.service';
import { MiddlewareLoggerModule } from './common/loggers/logger.module';
import { DataValidationService } from './common/service/dataValidation.service';
import { CohortMembers } from './common/entities/CohortMembers.entity'
import { CohortMembers } from './common/entities/CohortMembers.entity';
import { Cohort } from './common/entities/Cohort.entity';

@Module({
imports: [
ConfigModule.forRoot({ isGlobal: true }),
CacheModule.register({ isGlobal: true, store: MemoryStore }),
TypeOrmModule.forFeature([UserRolesMapping,UserTenantMapping,CohortMembers,Cohort]),
TypeOrmModule.forFeature([
UserRolesMapping,
UserTenantMapping,
CohortMembers,
Cohort,
]),
HttpModule,
DatabaseModule,
JwtModule,
MiddlewareLoggerModule
MiddlewareLoggerModule,
],
controllers: [AppController],
providers: [
Expand All @@ -36,13 +41,11 @@ import { Cohort } from './common/entities/Cohort.entity';
JwtStrategy,
PermissionsService,
GatewayService,
DataValidationService
DataValidationService,
],
})
export class AppModule {
configure(consumer: MiddlewareConsumer) {
consumer
.apply(MiddlewareServices)
.forRoutes('*');
consumer.apply(MiddlewareServices).forRoutes('*');
}
}
Loading

0 comments on commit 563bfd9

Please sign in to comment.