mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-06 06:12:16 +00:00
# Which Problems Are Solved Allows users to be created using the V2 User API # How the Problems Are Solved I added a seperate V2 create user page with the new code using the new apis. # Additional Changes I did some refactorings arround our interceptors as they used an obselete syntax. The password complexity form takes the Buf definitions. # Additional Context - Closes #9430 --------- Co-authored-by: Max Peintner <[email protected]>
66 lines
1.9 KiB
TypeScript
66 lines
1.9 KiB
TypeScript
import { NgModule } from '@angular/core';
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
import { roleGuard } from 'src/app/guards/role-guard';
|
|
import { ProjectType } from 'src/app/modules/project-members/project-members-datasource';
|
|
|
|
const routes: Routes = [
|
|
{
|
|
path: '',
|
|
data: {
|
|
animation: 'HomePage',
|
|
roles: ['project.read'],
|
|
},
|
|
canActivate: [roleGuard],
|
|
loadChildren: () => import('./owned-project-detail/owned-project-detail.module'),
|
|
},
|
|
{
|
|
path: 'members',
|
|
data: {
|
|
type: ProjectType.PROJECTTYPE_OWNED,
|
|
roles: ['project.member.read'],
|
|
},
|
|
canActivate: [roleGuard],
|
|
loadChildren: () => import('src/app/modules/project-members/project-members.module'),
|
|
},
|
|
{
|
|
path: 'apps',
|
|
data: {
|
|
animation: 'AddPage',
|
|
roles: ['project.app.read'],
|
|
},
|
|
canActivate: [roleGuard],
|
|
loadChildren: () => import('src/app/pages/projects/apps/apps.module'),
|
|
},
|
|
{
|
|
path: 'projectgrants',
|
|
data: {
|
|
// animation: 'AddPage',
|
|
// roles: ['project.grant.read:' + ':projectid', 'project.grant.read'],
|
|
},
|
|
// canActivate: [RoleGuard],
|
|
loadChildren: () => import('src/app/pages/projects/owned-projects/project-grants/project-grants.module'),
|
|
},
|
|
{
|
|
path: 'roles',
|
|
loadChildren: () => import('src/app/pages/projects/owned-projects/project-roles/project-roles.module'),
|
|
},
|
|
{
|
|
path: 'roles/create',
|
|
loadChildren: () => import('./project-role-create/project-role-create.module'),
|
|
},
|
|
{
|
|
path: 'projectgrants/create',
|
|
loadChildren: () => import('./project-grant-create/project-grant-create.module'),
|
|
},
|
|
{
|
|
path: 'projectgrants/:grantid',
|
|
loadChildren: () => import('./project-grant-detail/project-grant-detail.module'),
|
|
},
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forChild(routes)],
|
|
exports: [RouterModule],
|
|
})
|
|
export class OwnedProjectsRoutingModule {}
|