mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-04 05:12:16 +00:00
34 lines
937 B
TypeScript
34 lines
937 B
TypeScript
import { NgModule } from '@angular/core';
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
import { AuthGuard } from 'src/app/guards/auth.guard';
|
|
import { RoleGuard } from 'src/app/guards/role.guard';
|
|
import { PolicyComponentServiceType } from 'src/app/modules/policies/policy-component-types.enum';
|
|
|
|
import { OrgDetailComponent } from './org-detail/org-detail.component';
|
|
|
|
const routes: Routes = [
|
|
{
|
|
path: 'members',
|
|
loadChildren: () => import('./org-members/org-members.module'),
|
|
},
|
|
{
|
|
path: 'provider',
|
|
canActivate: [AuthGuard, RoleGuard],
|
|
loadChildren: () => import('src/app/modules/providers/providers.module'),
|
|
data: {
|
|
roles: ['org.idp.read'],
|
|
serviceType: PolicyComponentServiceType.MGMT,
|
|
},
|
|
},
|
|
{
|
|
path: '',
|
|
component: OrgDetailComponent,
|
|
},
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forChild(routes)],
|
|
exports: [RouterModule],
|
|
})
|
|
export class OrgRoutingModule {}
|