Merge branch 'jspong' into server

This commit is contained in:
AdrienLSH
2023-12-13 12:35:06 +01:00
2 changed files with 255 additions and 1 deletions

View File

@ -6,6 +6,9 @@ import Chat from "./views/Chat.js";
import HomeView from "./views/HomeView.js";
import RegisterView from "./views/accounts/RegisterView.js";
import LogoutView from "./views/accounts/LogoutView.js";
import GameView from "./views/Game.js"
import AbstractRedirectView from "./views/AbstractRedirectView.js";
import MeView from "./views/MeView.js";
import ProfilePageView from "./views/profiles/ProfilePageView.js";
@ -44,6 +47,7 @@ const router = async (uri) => {
{ path: "/home", view: HomeView },
{ path: "/me", view: MeView },
{ path: "/matchmaking", view: MatchMakingView },
{ path: "/game", view: GameView },
];
// Test each route for potential match
@ -96,4 +100,4 @@ document.addEventListener("DOMContentLoaded", () => {
router(location.pathname);
});
export { client, navigateTo }
export { client, navigateTo }