mirror of
https://github.com/rgrgogu/new_starr.git
synced 2026-09-27 00:12:54 +08:00
Adjusted
This commit is contained in:
@@ -49,6 +49,7 @@ import LessonsList from '../pages/courses/lessons/LessonsList'
|
||||
import AddLesson from '../pages/courses/lessons/AddLesson'
|
||||
import ViewLesson from '../pages/courses/lessons/ViewLesson'
|
||||
import EditLesson from '../pages/courses/lessons/EditLesson'
|
||||
import ArchivedLessonsList from '../pages/courses/lessons/ArchivedLessonsList'
|
||||
|
||||
// Lesson Page Builder
|
||||
import LessonPageBuilder from '../pages/courses/lessons/LessonPageBuilder'
|
||||
@@ -69,6 +70,7 @@ import EditTask from '../pages/task_list/task/EditTask'
|
||||
import ViewTask from '../pages/task_list/task/ViewTask'
|
||||
import ArchivedTask from '../pages/task_list/task/ArchiveTask'
|
||||
|
||||
|
||||
export const AdminRoutes = {
|
||||
element: <ProtectedRoute allowedRoles={['admin']} />,
|
||||
children: [
|
||||
@@ -149,6 +151,7 @@ export const AdminRoutes = {
|
||||
element: <Outlet />,
|
||||
children: [
|
||||
{ index: true, element: <LessonsList /> },
|
||||
{ path: 'archived', element: <ArchivedLessonsList /> },
|
||||
{ path: 'add', element: <AddLesson /> },
|
||||
{ path: ':lessonId/view', element: <ViewLesson /> },
|
||||
{ path: ':lessonId/edit', element: <EditLesson /> },
|
||||
|
||||
Reference in New Issue
Block a user