mirror of
https://github.com/rgrgogu/new_starr.git
synced 2026-09-27 00:12:54 +08:00
add: tasks func()
Signed-off-by: Kenneth Obsequio <k80308392@gmail.com>
This commit is contained in:
@@ -25,6 +25,7 @@ import ViewVideoAsset from "../pages/assets/ViewVideoAsset";
|
||||
import ViewDocumentAsset from "../pages/assets/ViewDocumentAsset";
|
||||
import AssetList from '../pages/assets/AssetList'
|
||||
import EditAsset from '../pages/assets/EditAsset'
|
||||
|
||||
import CourseList from '../pages/courses/CourseList'
|
||||
import CreateCourse from '../pages/courses/CreateCourse'
|
||||
import EditCourse from '../pages/courses/EditCourse'
|
||||
@@ -37,6 +38,18 @@ import LessonPageBuilder from '../pages/courses/LessonPageBuilder'
|
||||
import EditUnit from '../pages/courses/EditUnit'
|
||||
import EditLesson from '../pages/courses/EditLesson'
|
||||
|
||||
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: [
|
||||
@@ -106,6 +119,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