From acff469ba069b6f090adfd5ed91379c9f146aa77 Mon Sep 17 00:00:00 2001 From: Logan Hunt Date: Wed, 30 Mar 2022 15:18:16 -0600 Subject: Ability to add, remove, update radius and location of chatrooms with a leaflet --- server/app.module.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'server/app.module.ts') diff --git a/server/app.module.ts b/server/app.module.ts index bbc3c1c..5fc4654 100644 --- a/server/app.module.ts +++ b/server/app.module.ts @@ -3,17 +3,19 @@ import { APP_GUARD } from '@nestjs/core'; import { TypeOrmModule } from '@nestjs/typeorm'; import { AppController } from './app.controller'; import { config } from './database/config'; +import { ChatRoomModule } from './modules/chat_room.module'; import { UsersModule } from './modules/users.module'; import { PingGateway } from './providers/gateways/ping.gateway'; import { AuthGuard } from './providers/guards/auth.guard'; import { RolesGuard } from './providers/guards/roles.guard'; +import { ChatRoomService } from './providers/services/chat_room.service'; import { JwtService } from './providers/services/jwt.service'; import { RolesService } from './providers/services/roles.service'; import { UsersService } from './providers/services/users.service'; import { GuardUtil } from './providers/util/guard.util'; @Module({ - imports: [TypeOrmModule.forRoot(config), UsersModule], + imports: [TypeOrmModule.forRoot(config), UsersModule, ChatRoomModule], controllers: [AppController], providers: [ PingGateway, @@ -21,6 +23,7 @@ import { GuardUtil } from './providers/util/guard.util'; RolesService, JwtService, GuardUtil, + ChatRoomService, { provide: APP_GUARD, useClass: AuthGuard }, // auth guard should come before roles guard { provide: APP_GUARD, useClass: RolesGuard }, // otherwise users won't be authenticated before roles check ], -- cgit v1.2.3-70-g09d2