add: offline button
This commit is contained in:
parent
0ce8645770
commit
5d46ff5123
@ -47,7 +47,7 @@ const router = async (uri) => {
|
|||||||
{ path: "/home", view: HomeView },
|
{ path: "/home", view: HomeView },
|
||||||
{ path: "/me", view: MeView },
|
{ path: "/me", view: MeView },
|
||||||
{ path: "/matchmaking", view: MatchMakingView },
|
{ path: "/matchmaking", view: MatchMakingView },
|
||||||
{ path: "/game", view: GameView },
|
{ path: "/game/offline", view: GameView },
|
||||||
];
|
];
|
||||||
|
|
||||||
// Test each route for potential match
|
// Test each route for potential match
|
||||||
|
@ -10,6 +10,7 @@ export default class extends AbstractAuthentificateView {
|
|||||||
return `
|
return `
|
||||||
<h1>HOME</h1>
|
<h1>HOME</h1>
|
||||||
<a href="/matchmaking" class="nav__link" data-link>Play a game</a>
|
<a href="/matchmaking" class="nav__link" data-link>Play a game</a>
|
||||||
|
<a href="/game/offline" class="nav__link" data-link>Play offline</a>
|
||||||
<a href="/me" class="nav__link" data-link>Me</a>
|
<a href="/me" class="nav__link" data-link>Me</a>
|
||||||
<a href="/logout" class="nav__link" data-link>Logout</a>
|
<a href="/logout" class="nav__link" data-link>Logout</a>
|
||||||
`;
|
`;
|
||||||
|
Loading…
Reference in New Issue
Block a user