Spaces:
Sleeping
Sleeping
File size: 792 Bytes
a12cb0a 5c20486 a12cb0a 5c20486 a12cb0a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { ConfigModule } from '@nestjs/config';
import { Message } from './entities/message.entity';
import { MessageParticipant } from './entities/message-participant.entity';
import { User } from '../auth/entities/user.entity';
import { MessagingService } from './services/messaging.service';
import { MessagingController } from './controllers/messaging.controller';
import { MessagingGateway } from './gateways/messaging.gateway';
@Module({
imports: [
TypeOrmModule.forFeature([Message, MessageParticipant, User]),
ConfigModule,
],
controllers: [MessagingController],
providers: [MessagingService, MessagingGateway],
exports: [MessagingService],
})
export class MessagingModule {}
|