diff options
author | Logan Hunt <loganhunt@simponic.xyz> | 2022-03-30 15:18:16 -0600 |
---|---|---|
committer | Logan Hunt <loganhunt@simponic.xyz> | 2022-03-30 15:18:16 -0600 |
commit | acff469ba069b6f090adfd5ed91379c9f146aa77 (patch) | |
tree | e600e951d2e88ffde9252214fe31b8042ca129aa /server/app.module.ts | |
parent | 042e3b9862b253fb3c3e59ee628dd9e30edf7e35 (diff) | |
download | locchat-acff469ba069b6f090adfd5ed91379c9f146aa77.tar.gz locchat-acff469ba069b6f090adfd5ed91379c9f146aa77.zip |
Ability to add, remove, update radius and location of chatrooms with a leaflet
Diffstat (limited to 'server/app.module.ts')
-rw-r--r-- | server/app.module.ts | 5 |
1 files changed, 4 insertions, 1 deletions
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 ], |