add: tournament page

This commit is contained in:
2023-12-21 00:21:18 +01:00
parent 8e0514514b
commit 6295c5120f
5 changed files with 153 additions and 11 deletions

View File

@ -14,6 +14,7 @@ import AbstractRedirectView from "./views/abstracts/AbstractRedirectView.js";
import MeView from "./views/MeView.js";
import ProfilePageView from "./views/ProfilePageView.js";
import MatchMakingView from "./views/MatchMakingView.js";
import TournamentPageView from "./views/TournamentPageView.js";
let client = new Client(location.protocol + "//" + location.host)
@ -52,6 +53,7 @@ const router = async (uri) => {
const routes = [
{ path: "/", view: Dashboard },
{ path: "/profiles/:id", view: ProfilePageView },
{ path: "/tournaments/:id", view: TournamentPageView },
{ path: "/login", view: LoginView },
{ path: "/logout", view: LogoutView },
{ path: "/register", view: RegisterView },