Files
pyrofetes-frontend/src/app/routes.ts
2025-12-11 17:35:10 +01:00

26 lines
701 B
TypeScript

import { Routes } from '@angular/router';
export const routes: Routes = [
{
path: '',
loadComponent: () =>
import('./components/header/header').then(m => m.Header),
children: [
{
path: 'dashboard',
loadComponent: () =>
import('./components/pages/dashboard/dashboard').then(m => m.Dashboard),
},
{
path: '',
redirectTo: 'dashboard',
pathMatch: 'full',
},
],
},
{
path: 'login',
loadComponent: () =>
import('./components/pages/login/login').then(m => m.Login),
},
];