mirror of
https://github.com/opelly27/WinStudentGoalTracker.git
synced 2026-05-20 00:38:44 +00:00
22 lines
932 B
TypeScript
22 lines
932 B
TypeScript
import { Routes } from '@angular/router';
|
|
import { Home } from './pages/home/home';
|
|
import { Workspace } from './components/workspace/workspace';
|
|
import { Reports } from './components/reports/reports';
|
|
import { StudentProgressReport } from './components/student-progress-report/student-progress-report';
|
|
import { Admin } from './pages/admin/admin';
|
|
export default [
|
|
{
|
|
path: '',
|
|
component: Home,
|
|
children: [
|
|
{ path: '', redirectTo: 'students', pathMatch: 'full' },
|
|
{ path: 'students', component: Workspace },
|
|
{ path: 'students/:studentId', component: Workspace },
|
|
{ path: 'students/:studentId/goals/:goalId', component: Workspace },
|
|
{ path: 'reports', component: Reports },
|
|
{ path: 'reports/student-progress', component: StudentProgressReport },
|
|
{ path: 'admin', component: Admin },
|
|
],
|
|
},
|
|
] satisfies Routes;
|