33 أسطر
1.2 KiB
TypeScript
33 أسطر
1.2 KiB
TypeScript
import { Module } from '@nestjs/common';
|
|
import { MongooseModule } from '@nestjs/mongoose';
|
|
import { AuditModule } from '../audit/audit.module';
|
|
import { NotificationsModule } from '../notifications/notifications.module';
|
|
import { PostsModule } from '../posts/posts.module';
|
|
import { UsersModule } from '../users/users.module';
|
|
import { Like, LikeSchema } from '../likes/schemas/like.schema';
|
|
import { FollowsModule } from '../follows/follows.module';
|
|
import { BlocksModule } from '../blocks/blocks.module';
|
|
import { Comment, CommentSchema } from './schemas/comment.schema';
|
|
import { CommentsController } from './comments.controller';
|
|
import { CommentsService } from './comments.service';
|
|
import { CommentsRepository } from './comments.repository';
|
|
|
|
@Module({
|
|
imports: [
|
|
AuditModule,
|
|
MongooseModule.forFeature([
|
|
{ name: Comment.name, schema: CommentSchema },
|
|
{ name: Like.name, schema: LikeSchema },
|
|
]),
|
|
PostsModule,
|
|
NotificationsModule,
|
|
UsersModule,
|
|
FollowsModule,
|
|
BlocksModule,
|
|
],
|
|
controllers: [CommentsController],
|
|
providers: [CommentsService, CommentsRepository],
|
|
exports: [CommentsService, CommentsRepository],
|
|
})
|
|
export class CommentsModule {}
|