| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- import { Routes } from '@angular/router';
- import { adminGuard } from './admin.guard';
- export const adminRoutes: Routes = [
- {
- path: 'admin/login',
- loadComponent: () => import('./pages/admin-login.component').then((module) => module.AdminLoginComponent),
- },
- {
- path: 'admin',
- canActivate: [adminGuard],
- loadComponent: () => import('./layout/admin-shell.component').then((module) => module.AdminShellComponent),
- children: [
- { path: '', pathMatch: 'full', redirectTo: 'dashboard' },
- {
- path: 'dashboard',
- loadComponent: () => import('./pages/admin-dashboard.component').then((module) => module.AdminDashboardComponent),
- },
- {
- path: 'api-catalog',
- loadComponent: () => import('./pages/admin-api-catalog.component').then((module) => module.AdminApiCatalogComponent),
- },
- {
- path: 'icon-catalog',
- loadComponent: () => import('./pages/admin-icon-catalog.component').then((module) => module.AdminIconCatalogComponent),
- },
- {
- path: 'boot-layout',
- loadComponent: () => import('./pages/admin-boot-layout.component').then((module) => module.AdminBootLayoutComponent),
- },
- {
- path: 'resources',
- loadComponent: () => import('./pages/admin-resource-catalog.component').then((module) => module.AdminResourceCatalogComponent),
- },
- {
- path: 'resources/:className',
- loadComponent: () => import('./pages/admin-resource.component').then((module) => module.AdminResourceComponent),
- },
- {
- path: 'migration',
- loadComponent: () => import('./pages/admin-migration.component').then((module) => module.AdminMigrationComponent),
- },
- ],
- },
- ];
|