Update routes
This commit is contained in:
@@ -1,10 +1,7 @@
|
||||
import { Routes } from '@angular/router';
|
||||
import { Access } from './access';
|
||||
import { Login } from './login';
|
||||
import { Error } from './error';
|
||||
|
||||
export default [
|
||||
{ path: 'access', component: Access},
|
||||
{ path: 'error', component: Error},
|
||||
{ path: 'login', component: Login},
|
||||
{ path: 'access', loadComponent: () => import('./access').then(c => c.Access)},
|
||||
{ path: 'error', loadComponent: () => import('./error').then(c => c.Error)},
|
||||
{ path: 'login', loadComponent: () => import('./login').then(c => c.Login)},
|
||||
] as Routes;
|
||||
|
||||
@@ -1,15 +1,10 @@
|
||||
import { Routes } from '@angular/router';
|
||||
import {Documentation} from './documentation';
|
||||
import {Crud} from './crud';
|
||||
import {Landing} from './landing';
|
||||
import {Empty} from './empty';
|
||||
import {Notfound} from './notfound';
|
||||
|
||||
export default [
|
||||
{ path: 'documentation', component: Documentation},
|
||||
{ path: 'crud', component: Crud},
|
||||
{ path: 'landing', component: Landing},
|
||||
{ path: 'empty', component: Empty},
|
||||
{ path: 'notfound', component: Notfound},
|
||||
{ path: 'documentation', loadComponent: () => import('./documentation').then(c => c.Documentation)},
|
||||
{ path: 'crud', loadComponent: () => import('./crud').then(c => c.Crud)},
|
||||
{ path: 'landing', loadComponent: () => import('./landing').then(c => c.Landing)},
|
||||
{ path: 'empty', loadComponent: () => import('./empty').then(c => c.Empty)},
|
||||
{ path: 'notfound', loadComponent: () => import('./notfound').then(c => c.Notfound)},
|
||||
{ path: '**', redirectTo: '/notfound' }
|
||||
] as Routes;
|
||||
|
||||
Reference in New Issue
Block a user