fix: offline tictactoe: fixed 404 error

This commit is contained in:
Namonay 2024-05-07 15:13:38 +02:00
parent 821d4b9154
commit e46d266b5b
2 changed files with 2 additions and 2 deletions

View File

@ -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 },
];

View File

@ -12,7 +12,7 @@ export default class extends AbstractAuthenticatedView {
<h1>${lang.get('homeTitle', 'Home')}</h1>
<a href="/matchmaking" data-link>${lang.get('homeOnline', 'Play online')}</a>
<a href="/games/pong/offline" data-link>${lang.get('homeOffline', 'Play offline')}</a>
<a href="/tictactoe" data-link>${lang.get('ticTacToe')}</a>
<a href="/games/tictactoe/offline" data-link>${lang.get('ticTacToe')}</a>
<a href="/settings" data-link>${lang.get('homeSettings', 'Settings')}</a>
<a href="/logout" data-link>${lang.get('homeLogout', 'Logout')}</a>
`;