From 2c508fab460627c810034e556d2f488b9fba5dca Mon Sep 17 00:00:00 2001 From: Namonay Date: Fri, 22 Mar 2024 13:37:54 +0100 Subject: [PATCH] fix(Index.js): 404 Error when joining the website --- frontend/static/js/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/static/js/index.js b/frontend/static/js/index.js index 2616dbb..98c1386 100644 --- a/frontend/static/js/index.js +++ b/frontend/static/js/index.js @@ -18,7 +18,6 @@ import TournamentsListView from "./views/tournament/TournamentsListView.js"; import TournamentCreateView from "./views/tournament/TournamentCreateView.js"; import AuthenticationView from "./views/accounts/AuthenticationView.js"; import TicTacToeView from "./views/TicTacToeView.js"; -import TicTacToeOnlineView from "./views/TicTacToeViewOnline.js"; import GameHistoryView from "./views/GameHistoryView.js"; let client = new Client(location.origin); @@ -77,6 +76,7 @@ async function renderView(view) const router = async(uri) => { const routes = [ + { path: "/", view: HomeView}, { path: "/profiles/:id/history", view: GameHistoryView }, { path: "/profiles/:username", view: ProfilePageView }, { path: "/tournaments/create", view: TournamentCreateView }, @@ -91,7 +91,6 @@ const router = async(uri) => { { path: "/matchmaking", view: MatchMakingView }, { path: "/games/offline", view: GameOfflineView }, { path: "/tictactoe", view: TicTacToeView }, - { path: "/tictactoeonline", view: TicTacToeOnlineView }, { path: "/games/:id/0", view: GameView2D }, { path: "/games/:id/1", view: GameView3D }, ];