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 Imprint from "@/pages/Imprint";
|
||||
import Privacy from "@/pages/Privacy";
|
||||
import Create from "@/pages/Create";
|
||||
import Join from "@/pages/Join";
|
||||
|
||||
const routes = createBrowserRouter([
|
||||
{
|
||||
path: "/",
|
||||
element: <Root/>,
|
||||
children: [
|
||||
{
|
||||
path: "/",
|
||||
element: <Home/>,
|
||||
},
|
||||
{
|
||||
path: "/imprint",
|
||||
element: <Imprint/>,
|
||||
},
|
||||
{
|
||||
path: "/privacy",
|
||||
element: <Privacy/>
|
||||
},
|
||||
{path: "/", element: <Home/>},
|
||||
{path: "/imprint", element: <Imprint/>},
|
||||
{path: "/privacy", element: <Privacy/>},
|
||||
{path: "/create", element: <Create/>},
|
||||
{path: "/join", element: <Join/>},
|
||||
{
|
||||
path: "*",
|
||||
element: <div style={{display: "flex", justifyContent: "center"}}>404 - Seite nicht gefunden</div>,
|
||||
|
Loading…
x
Reference in New Issue
Block a user