110 lines
3.4 KiB
TypeScript
Executable File
110 lines
3.4 KiB
TypeScript
Executable File
import { Routes } from '@angular/router';
|
|
import { BlankComponent } from './layouts/blank/blank.component';
|
|
import { FullComponent } from './layouts/full/full.component';
|
|
import { authGuard } from './app.route.guard';
|
|
|
|
export const routes: Routes = [
|
|
{
|
|
path: '',
|
|
component: FullComponent,
|
|
children: [
|
|
{
|
|
path: '',
|
|
redirectTo: '/front-pages/homepage',
|
|
pathMatch: 'full',
|
|
},
|
|
// {
|
|
// path: 'starter',
|
|
// loadChildren: () =>
|
|
// import('./pages/pages.routes').then((m) => m.PagesRoutes),
|
|
// },
|
|
{
|
|
path: 'dashboard',
|
|
canActivate: [authGuard],
|
|
loadChildren: () =>
|
|
import('./pages/dashboard/dashboard.routes').then(
|
|
(m) => m.DashboardsRoutes
|
|
),
|
|
data: { title: 'Hlavná stránka' }
|
|
},
|
|
// {
|
|
// path: 'forms',
|
|
// loadChildren: () =>
|
|
// import('../../../theme/packages/main/src/app/pages/forms/forms.routes').then((m) => m.FormsRoutes),
|
|
// },
|
|
// {
|
|
// path: 'charts',
|
|
// loadChildren: () =>
|
|
// import('../../../theme/packages/main/src/app/pages/charts/charts.routes').then((m) => m.ChartsRoutes),
|
|
// },
|
|
// {
|
|
// path: 'apps',
|
|
// loadChildren: () =>
|
|
// import('../../../theme/packages/main/src/app/pages/apps/apps.routes').then((m) => m.AppsRoutes),
|
|
// },
|
|
// {
|
|
// path: 'widgets',
|
|
// loadChildren: () =>
|
|
// import('../../../theme/packages/main/src/app/pages/widgets/widgets.routes').then((m) => m.WidgetsRoutes),
|
|
// },
|
|
// {
|
|
// path: 'tables',
|
|
// loadChildren: () =>
|
|
// import('../../../theme/packages/main/src/app/pages/tables/tables.routes').then((m) => m.TablesRoutes),
|
|
// },
|
|
// {
|
|
// path: 'datatable',
|
|
// loadChildren: () =>
|
|
// import('../../../theme/packages/main/src/app/pages/datatable/datatable.routes').then(
|
|
// (m) => m.DatatablesRoutes
|
|
// ),
|
|
// },
|
|
// {
|
|
// path: 'theme-pages',
|
|
// loadChildren: () =>
|
|
// import('../../../theme/packages/main/src/app/pages/theme-pages/theme-pages.routes').then(
|
|
// (m) => m.ThemePagesRoutes
|
|
// ),
|
|
// },
|
|
// {
|
|
// path: 'ui-components',
|
|
// loadChildren: () =>
|
|
// import('../../../theme/packages/main/src/app/pages/ui-components/ui-components.routes').then(
|
|
// (m) => m.UiComponentsRoutes
|
|
// ),
|
|
// },
|
|
],
|
|
},
|
|
{
|
|
path: '',
|
|
component: BlankComponent,
|
|
children: [
|
|
{
|
|
path: 'authentication',
|
|
loadChildren: () =>
|
|
import('./pages/authentication/authentication.routes').then(
|
|
(m) => m.AuthenticationRoutes
|
|
),
|
|
},
|
|
// {
|
|
// path: 'landingpage',
|
|
// loadChildren: () =>
|
|
// import('../../../theme/packages/main/src/app/pages/theme-pages/landingpage/landingpage.routes').then(
|
|
// (m) => m.LandingPageRoutes
|
|
// ),
|
|
// },
|
|
{
|
|
path: 'front-pages',
|
|
loadChildren: () =>
|
|
import('./pages/front-pages/front-pages.routes').then(
|
|
(m) => m.FrontPagesRoutes
|
|
),
|
|
},
|
|
],
|
|
},
|
|
{
|
|
path: '**',
|
|
redirectTo: 'authentication/error',
|
|
},
|
|
];
|