You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
688 B
TypeScript
19 lines
688 B
TypeScript
5 years ago
|
import { Routes, RouterModule } from '@angular/router';
|
||
|
import { ModuleWithProviders } from '@angular/core';
|
||
|
|
||
|
import { CLRootComponent } from './cl-root.component';
|
||
|
import { CLHomeComponent } from './home/home.component';
|
||
|
|
||
|
import { CLUnlockedGuard } from '../shared/services/auth.guard';
|
||
|
import { NotFoundComponent } from '../shared/components/not-found/not-found.component';
|
||
|
|
||
|
export const ClRoutes: Routes = [
|
||
|
{ path: '', component: CLRootComponent,
|
||
|
children: [
|
||
|
{ path: 'home', component: CLHomeComponent, canActivate: [CLUnlockedGuard] },
|
||
|
{ path: '**', component: NotFoundComponent }
|
||
|
]}
|
||
|
];
|
||
|
|
||
|
export const CLRouting: ModuleWithProviders = RouterModule.forChild(ClRoutes);
|