Conectar dialog by kind of source; plain-language canvas; login page and guard; loading indicators as the old app; survival curves of her clinical scenarios in the CaMa record
This commit is contained in:
+32
-15
@@ -1,21 +1,38 @@
|
||||
import { Routes } from '@angular/router';
|
||||
import { domainAllowed, signedIn } from './auth/auth';
|
||||
|
||||
export const routes: Routes = [
|
||||
{ path: '', pathMatch: 'full', redirectTo: 'indicadores/cacu' },
|
||||
{ path: 'login', loadComponent: () => import('./auth/login').then((m) => m.Login) },
|
||||
{
|
||||
path: 'indicadores/:domain',
|
||||
loadComponent: () => import('./indicadores/indicadores').then((m) => m.Indicadores),
|
||||
path: '',
|
||||
canActivateChild: [signedIn],
|
||||
children: [
|
||||
{ path: '', pathMatch: 'full', redirectTo: 'indicadores/cacu' },
|
||||
{
|
||||
path: 'indicadores/:domain',
|
||||
canActivate: [domainAllowed],
|
||||
loadComponent: () => import('./indicadores/indicadores').then((m) => m.Indicadores),
|
||||
},
|
||||
{
|
||||
path: 'indicadores/:domain/pacientes/:id',
|
||||
canActivate: [domainAllowed],
|
||||
loadComponent: () => import('./paciente/paciente').then((m) => m.Paciente),
|
||||
},
|
||||
{
|
||||
path: 'conectar',
|
||||
loadComponent: () => import('./conectar/conectar').then((m) => m.Conectar),
|
||||
},
|
||||
{
|
||||
path: 'revision',
|
||||
loadComponent: () => import('./revision/revision').then((m) => m.Revision),
|
||||
},
|
||||
{ path: 'gobernanza', pathMatch: 'full', redirectTo: 'gobernanza/cacu' },
|
||||
{
|
||||
path: 'gobernanza/:domain',
|
||||
canActivate: [domainAllowed],
|
||||
loadComponent: () => import('./gobernanza/gobernanza').then((m) => m.Gobernanza),
|
||||
},
|
||||
{ path: '**', redirectTo: 'indicadores/cacu' },
|
||||
],
|
||||
},
|
||||
{
|
||||
path: 'indicadores/:domain/pacientes/:id',
|
||||
loadComponent: () => import('./paciente/paciente').then((m) => m.Paciente),
|
||||
},
|
||||
{ path: 'conectar', loadComponent: () => import('./conectar/conectar').then((m) => m.Conectar) },
|
||||
{ path: 'revision', loadComponent: () => import('./revision/revision').then((m) => m.Revision) },
|
||||
{ path: 'gobernanza', pathMatch: 'full', redirectTo: 'gobernanza/cacu' },
|
||||
{
|
||||
path: 'gobernanza/:domain',
|
||||
loadComponent: () => import('./gobernanza/gobernanza').then((m) => m.Gobernanza),
|
||||
},
|
||||
{ path: '**', redirectTo: 'indicadores/cacu' },
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user