From e46d266b5bd1d67cc39d136830a28180947407ef Mon Sep 17 00:00:00 2001 From: Namonay Date: Tue, 7 May 2024 15:13:38 +0200 Subject: [PATCH] fix: offline tictactoe: fixed 404 error --- frontend/static/js/index.js | 2 +- frontend/static/js/views/HomeView.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/static/js/index.js b/frontend/static/js/index.js index 8b5c5e0..9a62e1e 100644 --- a/frontend/static/js/index.js +++ b/frontend/static/js/index.js @@ -93,7 +93,7 @@ const router = async(uri) => { { path: "/matchmaking", view: MatchMakingView }, { path: "/games/pong/offline", view: PongOfflineView }, { path: "/games/pong/:id", view: PongOnlineView }, - { path: "/games/tictactoe", view: TicTacToeOfflineView }, + { path: "/games/tictactoe/offline", view: TicTacToeOfflineView }, { path: "/games/tictactoe/:id", view: TicTacToeOnlineView }, ]; diff --git a/frontend/static/js/views/HomeView.js b/frontend/static/js/views/HomeView.js index 4822dbd..17adb2f 100644 --- a/frontend/static/js/views/HomeView.js +++ b/frontend/static/js/views/HomeView.js @@ -12,7 +12,7 @@ export default class extends AbstractAuthenticatedView {

${lang.get('homeTitle', 'Home')}

${lang.get('homeOnline', 'Play online')} ${lang.get('homeOffline', 'Play offline')} - ${lang.get('ticTacToe')} + ${lang.get('ticTacToe')} ${lang.get('homeSettings', 'Settings')} ${lang.get('homeLogout', 'Logout')} `;