add: Added homepage

This commit is contained in:
Namonay
2024-05-14 21:02:11 +02:00
parent 995a808974
commit 1993c3e06b
9 changed files with 52 additions and 2 deletions

View File

@ -12,6 +12,7 @@ import { TicTacToeOfflineView } from "./views/TicTacToeOfflineView.js"
import PageNotFoundView from './views/PageNotFoundView.js' ;
import DashboardView from "./views/DashboardView.js";
import AbstractRedirectView from "./views/abstracts/AbstractRedirectView.js";
import SettingsView from "./views/SettingsView.js";
import ProfilePageView from "./views/ProfilePageView.js";
@ -74,7 +75,7 @@ async function renderView(view)
const router = async(uri) => {
const routes = [
{ path: "/", view: HomeView},
{ path: "/", view: DashboardView},
{ path: "/profiles/:username", view: ProfilePageView },
{ path: "/login", view: AuthenticationView },
{ path: "/register", view: AuthenticationView },