Implemented the Game & End routes into the main.jsx
This commit is contained in:
parent
65cc8a6f36
commit
a57c9c746d
@ -10,6 +10,8 @@ import Imprint from "@/pages/Imprint";
|
|||||||
import Privacy from "@/pages/Privacy";
|
import Privacy from "@/pages/Privacy";
|
||||||
import Create from "@/pages/Create";
|
import Create from "@/pages/Create";
|
||||||
import Join from "@/pages/Join";
|
import Join from "@/pages/Join";
|
||||||
|
import Game from "@/pages/Game";
|
||||||
|
import End from "@/pages/End";
|
||||||
|
|
||||||
const routes = createBrowserRouter([
|
const routes = createBrowserRouter([
|
||||||
{
|
{
|
||||||
@ -21,6 +23,9 @@ const routes = createBrowserRouter([
|
|||||||
{path: "/privacy", element: <Privacy/>},
|
{path: "/privacy", element: <Privacy/>},
|
||||||
{path: "/create", element: <Create/>},
|
{path: "/create", element: <Create/>},
|
||||||
{path: "/join", element: <Join/>},
|
{path: "/join", element: <Join/>},
|
||||||
|
{path: "/join/:code", element: <Join/>},
|
||||||
|
{path: "/game", element: <Game/>},
|
||||||
|
{path: "/end", element: <End/>},
|
||||||
{
|
{
|
||||||
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