2022-03-29 22:17:08 -04:00
|
|
|
import { Module } from '@nestjs/common';
|
|
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
|
|
import { ChatRoomController } from 'server/controllers/chat_room.controller';
|
|
|
|
import { ChatRoom } from 'server/entities/chat_room.entity';
|
2022-04-01 18:04:00 -04:00
|
|
|
import { ChatRoomConnection } from 'server/entities/chat_room_connection.entity';
|
2022-03-29 22:17:08 -04:00
|
|
|
import { ChatRoomService } from 'server/providers/services/chat_room.service';
|
2022-03-30 17:18:16 -04:00
|
|
|
import { UsersService } from 'server/providers/services/users.service';
|
|
|
|
import { UsersModule } from './users.module';
|
2022-03-29 22:17:08 -04:00
|
|
|
|
|
|
|
@Module({
|
2022-04-01 18:04:00 -04:00
|
|
|
imports: [TypeOrmModule.forFeature([ChatRoom, ChatRoomConnection]), UsersModule],
|
2022-03-29 22:17:08 -04:00
|
|
|
controllers: [ChatRoomController],
|
2022-03-30 17:18:16 -04:00
|
|
|
providers: [ChatRoomService, UsersService],
|
2022-03-29 22:17:08 -04:00
|
|
|
exports: [TypeOrmModule],
|
|
|
|
})
|
2022-03-30 17:18:16 -04:00
|
|
|
export class ChatRoomModule {}
|