Add login/:code route with AuthGuard and required authorizations
This commit is contained in:
parent
5ab81ee66e
commit
b7c553acc1
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user