Skip to content

Commit

Permalink
Merge pull request #90 from jihwooon/issue-58
Browse files Browse the repository at this point in the history
AppModule에 RouterModule를 추가하라
  • Loading branch information
jihwooon authored Oct 31, 2023
2 parents f50bc5b + 5ccc1fb commit 1c9f480
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions server/src/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Module } from '@nestjs/common'
import { RouterModule } from '@nestjs/core'
import { AppController } from './app.controller'
import { AppService } from './app.service'
import { ConfigModule } from '@nestjs/config'
Expand All @@ -15,6 +16,12 @@ import { ExceptionModule } from './config/error/exception.module'
AuthModule,
ItemModule,
ExceptionModule,
RouterModule.register([
{
path: 'admin',
module: ItemModule,
},
]),
],
controllers: [AppController],
providers: [AppService],
Expand Down

0 comments on commit 1c9f480

Please sign in to comment.