mirror of
https://github.com/rgrgogu/new_starr.git
synced 2026-09-27 00:12:54 +08:00
Merged
This commit is contained in:
@@ -30,6 +30,7 @@ import AssetList from '../pages/assets/AssetList'
|
||||
import EditAsset from '../pages/assets/EditAsset'
|
||||
|
||||
// Courses
|
||||
|
||||
import CourseList from '../pages/courses/CourseList'
|
||||
import AddCourse from '../pages/courses/AddCourse'
|
||||
import ViewCourse from '../pages/courses/ViewCourse'
|
||||
@@ -55,6 +56,18 @@ import CourseAssessment from '../pages/courses/CourseAssessment'
|
||||
import UnitQuiz from '../pages/courses/units/UnitQuiz'
|
||||
|
||||
|
||||
import TaskList from '../pages/task_list/TaskList'
|
||||
import CreateTaskList from '../pages/task_list/CreateTaskList'
|
||||
import EditTaskList from '../pages/task_list/EditTaskList'
|
||||
import Tasks from '../pages/task_list/task/Tasks'
|
||||
import ArchiveTaskList from '../pages/task_list/ArchiveTaskList'
|
||||
import ViewTaskList from '../pages/task_list/ViewTaskList'
|
||||
|
||||
import CreateTask from '../pages/task_list/task/CreateTask'
|
||||
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: [
|
||||
@@ -145,6 +158,30 @@ export const AdminRoutes = {
|
||||
},
|
||||
]
|
||||
},
|
||||
// Task
|
||||
{
|
||||
path: 'taskList',
|
||||
element: <Outlet />,
|
||||
children: [
|
||||
{ index: true, element: <TaskList /> },
|
||||
{ path: 'create', element: <CreateTaskList /> },
|
||||
{ path: 'archived', element: <ArchiveTaskList /> },
|
||||
{ path: ':taskListId/view', element: <ViewTaskList /> },
|
||||
{ path: ':taskListId/edit', element: <EditTaskList /> },
|
||||
{
|
||||
path: ':taskListId/tasks',
|
||||
element: <Outlet />,
|
||||
children: [
|
||||
{ index: true, element: <Tasks /> },
|
||||
{ path: 'create', element: <CreateTask /> },
|
||||
{ path: 'archived', element: <ArchivedTask /> },
|
||||
{ path: ':taskId/view', element: <ViewTask /> },
|
||||
{ path: ':taskId/edit', element: <EditTask /> },
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
// Add here
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user