diff --git a/server/src/app.module.ts b/server/src/app.module.ts index 3f9208e..6948b40 100644 --- a/server/src/app.module.ts +++ b/server/src/app.module.ts @@ -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' @@ -15,6 +16,12 @@ import { ExceptionModule } from './config/error/exception.module' AuthModule, ItemModule, ExceptionModule, + RouterModule.register([ + { + path: 'admin', + module: ItemModule, + }, + ]), ], controllers: [AppController], providers: [AppService],