Skip to content

Commit

Permalink
fix: AdminGuard 범위 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Miensoap committed Nov 18, 2024
1 parent a2f6e48 commit 6fbe1d3
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions backend/src/admin/admin.module.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { Module } from '@nestjs/common';
import { Module, UseGuards } from '@nestjs/common';
import { AdminBannerModule } from './banner/banner.module';
import { RouterModule, APP_GUARD } from '@nestjs/core';
import { RouterModule } from '@nestjs/core';
import { AdminGuard } from '@src/admin/guard/AdminGuard';
import { AuthModule } from '@src/auth/auth.module';

@UseGuards(AdminGuard)
@Module({
imports: [
AuthModule,
Expand All @@ -21,11 +22,5 @@ import { AuthModule } from '@src/auth/auth.module';
},
]),
],
providers: [
{
provide: APP_GUARD,
useClass: AdminGuard,
},
],
})
export class AdminModule {}

0 comments on commit 6fbe1d3

Please sign in to comment.