blob: 628f6285798be73391da6fba7819e8a25fb80e50 [file] [log] [blame]
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { PageNotFoundComponent } from '@shared/components/pageNotFound/pageNotFound.component';
const appRoutes: Routes = [
{ path: '', redirectTo: '/overview', pathMatch: 'full' },
{
path: 'admin',
loadChildren: './pages/admin/admin.module#AdminModule',
},
{ path: '**', component: PageNotFoundComponent },
];
@NgModule({
imports: [RouterModule.forRoot(appRoutes)],
exports: [RouterModule],
})
export class AppRoutingModule {}