新建post模块

This commit is contained in:
Jeremy Yin 2019-06-26 21:22:08 +08:00
parent 833274304f
commit 770c7dbd79
2 changed files with 6 additions and 0 deletions

View File

@ -2,6 +2,7 @@ import { Module } from '@nestjs/common';
import { AppController } from './app.controller'; import { AppController } from './app.controller';
import { AppService } from './app.service'; import { AppService } from './app.service';
import { TypeOrmModule } from '@nestjs/typeorm'; import { TypeOrmModule } from '@nestjs/typeorm';
import { PostModule } from './modules/post/post.module';
@Module({ @Module({
imports: [ imports: [
@ -15,6 +16,7 @@ import { TypeOrmModule } from '@nestjs/typeorm';
synchronize: true, synchronize: true,
entities: [__dirname + '/**/*.entity{.ts,.js}'], entities: [__dirname + '/**/*.entity{.ts,.js}'],
}), }),
PostModule,
], ],
controllers: [AppController], controllers: [AppController],
providers: [AppService], providers: [AppService],

View File

@ -0,0 +1,4 @@
import { Module } from '@nestjs/common';
@Module({})
export class PostModule {}