14 lines
451 B
TypeScript
14 lines
451 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
import { Comment } from './entities/comment.entity';
|
|
import { CommentsService } from './comments.service';
|
|
import { CommentsController } from './comments.controller';
|
|
|
|
@Module({
|
|
imports: [TypeOrmModule.forFeature([Comment])],
|
|
controllers: [CommentsController],
|
|
providers: [CommentsService],
|
|
exports: [CommentsService],
|
|
})
|
|
export class CommentsModule {}
|