Add login/:code route with AuthGuard and required authorizations

This commit is contained in:
akastijn 2025-11-08 18:02:34 +01:00
parent 5ab81ee66e
commit b7c553acc1

View File

@ -2,6 +2,14 @@ import {Routes} from '@angular/router';
import {AuthGuard} from './guards/auth.guard';
export const routes: Routes = [
{
path: 'login/:code',
loadComponent: () => import('./pages/home/home.component').then(m => m.HomeComponent),
canActivate: [AuthGuard],
data: {
requiredAuthorizations: ['SCOPE_user']
}
},
{
path: '',
loadComponent: () => import('./pages/home/home.component').then(m => m.HomeComponent)