Added some paths again

This commit is contained in:
Peter KW 2024-03-18 00:40:42 +01:00
parent 888256e9f6
commit d97516e0cd

View file

@ -5,6 +5,10 @@ import { createBrowserRouter, RouterProvider } from "react-router-dom";
import App from "./Pages/App"; import App from "./Pages/App";
import AdminMenuPage from "./Pages/AdminPages/AdminMenuPage"; import AdminMenuPage from "./Pages/AdminPages/AdminMenuPage";
import YourProjectsPage from "./Pages/YourProjectsPage"; import YourProjectsPage from "./Pages/YourProjectsPage";
import AdminAddProject from "./Pages/AdminPages/AdminAddProject";
import AdminManageProjects from "./Pages/AdminPages/AdminManageProjects";
import AdminManageUsers from "./Pages/AdminPages/AdminManageUsers";
import AdminAddUser from "./Pages/AdminPages/AdminAddUser";
// This is where the routes are mounted // This is where the routes are mounted
const router = createBrowserRouter([ const router = createBrowserRouter([
@ -20,6 +24,26 @@ const router = createBrowserRouter([
path: "/pm", path: "/pm",
element: <YourProjectsPage />, element: <YourProjectsPage />,
}, },
{
path: "/user",
element: <YourProjectsPage />,
},
{
path: "/addProject",
element: <AdminAddProject />,
},
{
path: "/adminAddUser",
element: <AdminAddUser />,
},
{
path: "/adminManageProject",
element: <AdminManageProjects />,
},
{
path: "/adminManageUser",
element: <AdminManageUsers />,
},
]); ]);
// Semi-hacky way to get the root element // Semi-hacky way to get the root element