LocChat/server/modules/chat_room.module.ts

17 lines
748 B
TypeScript
Raw Permalink Normal View History

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';
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],
providers: [ChatRoomService, UsersService],
2022-03-29 22:17:08 -04:00
exports: [TypeOrmModule],
})
export class ChatRoomModule {}