feat: add routes for admin panel
This commit is contained in:
@ -11,6 +11,9 @@ import {SummaryComponent} from "@page/setup/summary/summary.component";
|
||||
import {LoginComponent} from "@page/login/login.component";
|
||||
import {PasswordPolicyComponent} from "@page/setup/password-policy/password-policy.component";
|
||||
import {TwoFactorComponent} from "@page/setup/two-factor/two-factor.component";
|
||||
import {AdminComponent} from "@page/admin/admin.component";
|
||||
import {UnderConstructionComponent} from "@page/admin/under-construction/under-construction.component";
|
||||
import {ScheduleConfigurationComponent} from "@page/admin/schedule-configuration/schedule-configuration.component";
|
||||
|
||||
export const routes: Routes = [
|
||||
{path: '', title: 'Расписание', pathMatch: 'full', component: ScheduleComponent},
|
||||
@ -29,6 +32,14 @@ export const routes: Routes = [
|
||||
]
|
||||
},
|
||||
{path: 'login', title: 'Вход', component: LoginComponent},
|
||||
/*{path: 'not-found', title: '404 страница не найдена'},
|
||||
{path: '**', redirectTo: '/not-found'}*/
|
||||
{
|
||||
path: 'admin', title: 'Админ панель', component: AdminComponent, children: [
|
||||
{path: 'schedule', component: ScheduleConfigurationComponent},
|
||||
{path: 'institute', component: UnderConstructionComponent},
|
||||
{path: 'account', component: UnderConstructionComponent},
|
||||
{path: 'server', component: UnderConstructionComponent},
|
||||
{path: '', redirectTo: 'schedule', pathMatch: 'full'},
|
||||
{path: '**', redirectTo: 'schedule', pathMatch: 'full'}
|
||||
]
|
||||
}
|
||||
];
|
||||
|
Reference in New Issue
Block a user