2024-06-11 00:21:29 +03:00
|
|
|
|
import {Routes} from '@angular/router';
|
|
|
|
|
import {ScheduleComponent} from "@page/schedule/schedule.component";
|
2024-06-11 00:23:48 +03:00
|
|
|
|
import {WelcomeComponent} from "@page/setup/welcome/welcome.component";
|
|
|
|
|
import {DatabaseComponent} from "@page/setup/database/database.component";
|
|
|
|
|
import {CacheComponent} from "@page/setup/cache/cache.component";
|
|
|
|
|
import {LoggingComponent} from "@page/setup/logging/logging.component";
|
|
|
|
|
import {ScheduleComponent as SetupScheduleComponent} from "@page/setup/schedule/schedule.component";
|
|
|
|
|
import {SetupComponent} from "@page/setup/setup.component";
|
|
|
|
|
import {CreateAdminComponent} from "@page/setup/create-admin/create-admin.component";
|
|
|
|
|
import {SummaryComponent} from "@page/setup/summary/summary.component";
|
2024-02-05 06:29:18 +03:00
|
|
|
|
|
2024-06-11 00:21:29 +03:00
|
|
|
|
export const routes: Routes = [
|
2024-06-11 00:23:48 +03:00
|
|
|
|
{path: '', title: 'Расписание', pathMatch: 'full', component: ScheduleComponent},
|
|
|
|
|
{
|
|
|
|
|
path: 'setup', title: 'Установка', component: SetupComponent, children: [
|
|
|
|
|
{path: 'welcome', component: WelcomeComponent},
|
|
|
|
|
{path: 'database', component: DatabaseComponent},
|
|
|
|
|
{path: 'cache', component: CacheComponent},
|
|
|
|
|
{path: 'create-admin', component: CreateAdminComponent},
|
|
|
|
|
{path: 'schedule', component: SetupScheduleComponent},
|
|
|
|
|
{path: 'logging', component: LoggingComponent},
|
|
|
|
|
{path: 'summary', component: SummaryComponent},
|
|
|
|
|
{path: '', redirectTo: 'welcome', pathMatch: 'full'}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
/*{path: 'not-found', title: '404 страница не найдена'},
|
|
|
|
|
{path: '**', redirectTo: '/not-found'}*/
|
2024-06-11 00:21:29 +03:00
|
|
|
|
];
|