新建post模块
This commit is contained in:
parent
833274304f
commit
770c7dbd79
|
@ -2,6 +2,7 @@ import { Module } from '@nestjs/common';
|
|||
import { AppController } from './app.controller';
|
||||
import { AppService } from './app.service';
|
||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||
import { PostModule } from './modules/post/post.module';
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
|
@ -15,6 +16,7 @@ import { TypeOrmModule } from '@nestjs/typeorm';
|
|||
synchronize: true,
|
||||
entities: [__dirname + '/**/*.entity{.ts,.js}'],
|
||||
}),
|
||||
PostModule,
|
||||
],
|
||||
controllers: [AppController],
|
||||
providers: [AppService],
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
import { Module } from '@nestjs/common';
|
||||
|
||||
@Module({})
|
||||
export class PostModule {}
|
Loading…
Reference in New Issue