Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

Commit

Permalink
feat: generate post module
Browse files Browse the repository at this point in the history
  • Loading branch information
YanceyOfficial committed Apr 4, 2020
1 parent 395c9d9 commit dedbb58
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { YanceyMusicModule } from './yancey-music/yancey-music.module'
import { BestAlbumsModule } from './best-albums/best-albums.module'
import { PlayerModule } from './player/player.module'
import { AgendaModule } from './agenda/agenda.module'
import { PostsModule } from './posts/posts.module'

@Module({
imports: [
Expand All @@ -39,6 +40,7 @@ import { AgendaModule } from './agenda/agenda.module'
BestAlbumsModule,
PlayerModule,
AgendaModule,
PostsModule,
],

providers: [
Expand Down
4 changes: 4 additions & 0 deletions src/posts/posts.controller.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { Controller } from '@nestjs/common'

@Controller('posts')
export class PostsController {}
9 changes: 9 additions & 0 deletions src/posts/posts.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { Module } from '@nestjs/common'
import { PostsService } from './posts.service'
import { PostsController } from './posts.controller'

@Module({
providers: [PostsService],
controllers: [PostsController],
})
export class PostsModule {}
4 changes: 4 additions & 0 deletions src/posts/posts.service.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { Injectable } from '@nestjs/common'

@Injectable()
export class PostsService {}

0 comments on commit dedbb58

Please sign in to comment.