add: tournament list view

This commit is contained in:
2023-12-21 11:35:47 +01:00
parent bcf6868150
commit 587980d637
5 changed files with 157 additions and 6 deletions

View File

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