Integrated all pages in the main.jsx
This commit is contained in:
parent
8de0fa3e05
commit
0aa5d8cc0e
@ -8,24 +8,19 @@ import Root from "@/common/layouts/Root";
|
|||||||
import Home from "@/pages/Home";
|
import Home from "@/pages/Home";
|
||||||
import Imprint from "@/pages/Imprint";
|
import Imprint from "@/pages/Imprint";
|
||||||
import Privacy from "@/pages/Privacy";
|
import Privacy from "@/pages/Privacy";
|
||||||
|
import Create from "@/pages/Create";
|
||||||
|
import Join from "@/pages/Join";
|
||||||
|
|
||||||
const routes = createBrowserRouter([
|
const routes = createBrowserRouter([
|
||||||
{
|
{
|
||||||
path: "/",
|
path: "/",
|
||||||
element: <Root/>,
|
element: <Root/>,
|
||||||
children: [
|
children: [
|
||||||
{
|
{path: "/", element: <Home/>},
|
||||||
path: "/",
|
{path: "/imprint", element: <Imprint/>},
|
||||||
element: <Home/>,
|
{path: "/privacy", element: <Privacy/>},
|
||||||
},
|
{path: "/create", element: <Create/>},
|
||||||
{
|
{path: "/join", element: <Join/>},
|
||||||
path: "/imprint",
|
|
||||||
element: <Imprint/>,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: "/privacy",
|
|
||||||
element: <Privacy/>
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
path: "*",
|
path: "*",
|
||||||
element: <div style={{display: "flex", justifyContent: "center"}}>404 - Seite nicht gefunden</div>,
|
element: <div style={{display: "flex", justifyContent: "center"}}>404 - Seite nicht gefunden</div>,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user