You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
668 B

import { Module } from '@nestjs/common'
import { TypeOrmModule } from '@nestjs/typeorm'
import { AuthModule } from 'src/auth/auth.module'
import { UsersModule } from 'src/users/users.module'
// import { ChatGateway } from './chat.gateway'
import { ChatController } from './chat.controller'
import { ChannelService } from './chat.service'
import Channel from './entity/channel.entity'
import Message from './entity/message.entity'
@Module({
imports: [
AuthModule,
UsersModule,
TypeOrmModule.forFeature([Channel]),
TypeOrmModule.forFeature([Message])
],
controllers: [ChatController],
providers: [ChannelService]
})
export class ChatModule {}