-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
55 changed files
with
4,399 additions
and
4,098 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,95 +1,95 @@ | ||
import ApiAuthorzationRoutes from './components/api-authorization/ApiAuthorizationRoutes'; | ||
import Home from "./components/Pages/Home"; | ||
import Login from "./components/Pages/Login"; | ||
import ChangePassword from "./components/Pages/ChangePassword"; | ||
import AdminUsers from "./components/Pages/AdminUsers"; | ||
import Home from './components/Pages/Home'; | ||
import Login from './components/Pages/Login'; | ||
import ChangePassword from './components/Pages/ChangePassword'; | ||
import AdminUsers from './components/Pages/AdminUsers'; | ||
import AdminGroups from './components/Pages/AdminGroups'; | ||
import AdminGroup from "./components/Pages/AdminGroup"; | ||
import AdminCourses from "./components/Pages/AdminCourses"; | ||
import AdminGroup from './components/Pages/AdminGroup'; | ||
import AdminCourses from './components/Pages/AdminCourses'; | ||
import AdminClassrooms from './components/Pages/AdminClassrooms'; | ||
import AdminClassroom from './components/Pages/AdminClassroom'; | ||
import ProfilePage from './components/Pages/ProfilePage'; | ||
import AdminSemesters from './components/Pages/AdminSemesters'; | ||
import AdminSemester from "./components/Pages/AdminSemester"; | ||
import AdminSemester from './components/Pages/AdminSemester'; | ||
import AdminClasses from './components/Pages/AdminClasses'; | ||
import AdminClass from './components/Pages/AdminClass'; | ||
import ActivityTypes from './components/Pages/ActivityTypes'; | ||
|
||
const AppRoutes = [ | ||
{ | ||
index: true, | ||
element: <Home /> | ||
element: <Home />, | ||
}, | ||
{ | ||
path: '/change-password', | ||
requireAuth: true, | ||
element: <ChangePassword /> | ||
element: <ChangePassword />, | ||
}, | ||
{ | ||
path: '/login', | ||
element: <Login/> | ||
element: <Login />, | ||
}, | ||
{ | ||
path: '/users', | ||
requireAuth: true, | ||
element: <AdminUsers/>, | ||
element: <AdminUsers />, | ||
}, | ||
{ | ||
path: '/groups', | ||
requireAuth: true, | ||
element: <AdminGroups/>, | ||
element: <AdminGroups />, | ||
}, | ||
{ | ||
path: '/groups/:id', | ||
requireAuth: true, | ||
element: <AdminGroup/>, | ||
element: <AdminGroup />, | ||
}, | ||
{ | ||
path: '/courses', | ||
requireAuth: true, | ||
element: <AdminCourses/>, | ||
element: <AdminCourses />, | ||
}, | ||
{ | ||
path: '/classrooms', | ||
requireAuth: true, | ||
element: <AdminClassrooms/>, | ||
element: <AdminClassrooms />, | ||
}, | ||
{ | ||
path: '/classrooms/:id', | ||
requireAuth: true, | ||
element: <AdminClassroom/>, | ||
element: <AdminClassroom />, | ||
}, | ||
{ | ||
path: '/semesters', | ||
requireAuth: true, | ||
element: <AdminSemesters/>, | ||
element: <AdminSemesters />, | ||
}, | ||
{ | ||
path: '/semesters/:id', | ||
requireAuth: true, | ||
element: <AdminSemester/>, | ||
element: <AdminSemester />, | ||
}, | ||
{ | ||
path: '/profile', | ||
requireAuth: true, | ||
element: <ProfilePage/>, | ||
element: <ProfilePage />, | ||
}, | ||
{ | ||
path: '/classes', | ||
requireAuth: true, | ||
element: <AdminClasses/>, | ||
element: <AdminClasses />, | ||
}, | ||
{ | ||
path: '/classes/:id', | ||
requireAuth: true, | ||
element: <AdminClass/>, | ||
element: <AdminClass />, | ||
}, | ||
{ | ||
path: '/activityTypes', | ||
requireAuth: true, | ||
element: <ActivityTypes/>, | ||
element: <ActivityTypes />, | ||
}, | ||
...ApiAuthorzationRoutes | ||
...ApiAuthorzationRoutes, | ||
]; | ||
|
||
export default AppRoutes; |
Oops, something went wrong.