13 lines
384 B
TypeScript
13 lines
384 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
import { Post } from './entities/post.entity';
|
|
import { PostController } from './post.controller';
|
|
import { PostService } from './post.service';
|
|
|
|
@Module({
|
|
imports: [TypeOrmModule.forFeature([Post])],
|
|
controllers: [PostController],
|
|
providers: [PostService],
|
|
})
|
|
export class PostModule {}
|