This commit is contained in:
rgrgogu
2026-05-21 11:48:50 +08:00
parent 8454d8bcf3
commit 8ac7b08f86
12 changed files with 297 additions and 93 deletions
+2
View File
@@ -42,6 +42,7 @@ import UnitsList from '../pages/courses/units/UnitsList'
import AddUnit from '../pages/courses/units/AddUnit'
import ViewUnit from '../pages/courses/units/ViewUnit'
import EditUnit from '../pages/courses/units/EditUnit'
import ArchivedUnitsList from '../pages/courses/units/ArchivedUnitsList'
// Lessons
import LessonsList from '../pages/courses/lessons/LessonsList'
@@ -136,6 +137,7 @@ export const AdminRoutes = {
element: <Outlet />,
children: [
{ index: true, element: <UnitsList /> },
{ path: 'archived', element: <ArchivedUnitsList /> },
{ path: 'add', element: <AddUnit /> },
{ path: ':unitId/view', element: <ViewUnit /> },
{ path: ':unitId/edit', element: <EditUnit /> },