add: home

This commit is contained in:
2023-11-27 19:15:15 +01:00
parent 27044e9bdb
commit 25721bdda8
2 changed files with 21 additions and 2 deletions

View File

@ -0,0 +1,17 @@
import AbstractView from "./AbstractView.js";
import { client, navigateTo } from "../index.js";
export default class extends AbstractView {
constructor(params) {
super(params);
if (client.isAuthentificate() == false)
navigateTo("/home");
this.setTitle("register");
}
async getHtml() {
return `
<h1>HOME</h1>
`;
}
}