2022-07-01 20:53:38 +00:00
|
|
|
import { Module } from '@nestjs/common';
|
|
|
|
import { PostCommentsService } from './post-comments.service';
|
|
|
|
import { PostCommentsController } from './post-comments.controller';
|
2022-07-01 22:27:19 +00:00
|
|
|
import { MongooseModule } from '@nestjs/mongoose';
|
|
|
|
import { Comment, CommentSchema } from '../schemas/post-comment.schema';
|
2022-07-01 20:53:38 +00:00
|
|
|
|
|
|
|
@Module({
|
2022-07-01 22:27:19 +00:00
|
|
|
imports: [
|
|
|
|
MongooseModule.forFeature([{ name: Comment.name, schema: CommentSchema }]),
|
|
|
|
],
|
2022-07-01 20:53:38 +00:00
|
|
|
controllers: [PostCommentsController],
|
|
|
|
providers: [PostCommentsService]
|
|
|
|
})
|
|
|
|
export class PostCommentsModule {}
|