diff options
Diffstat (limited to 'server/app.module.ts')
-rw-r--r-- | server/app.module.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/app.module.ts b/server/app.module.ts index 41446f8..d0135c1 100644 --- a/server/app.module.ts +++ b/server/app.module.ts @@ -9,6 +9,7 @@ import { RolesGuard } from './providers/guards/roles.guard'; import { JwtService } from './providers/services/jwt.service'; import { RolesService } from './providers/services/roles.service'; import { UsersService } from './providers/services/users.service'; +import { GuardUtil } from './providers/util/guard.util'; @Module({ imports: [TypeOrmModule.forRoot(config), UsersModule], @@ -17,6 +18,7 @@ import { UsersService } from './providers/services/users.service'; UsersService, RolesService, JwtService, + GuardUtil, { provide: APP_GUARD, useClass: AuthGuard }, // auth guard should come before roles guard { provide: APP_GUARD, useClass: RolesGuard }, // otherwise users won't be authenticated before roles check ], |