ft_transcendence/frontend/static/js/views/HomeView.js
starnakin 84a5a592ca add: Abstract class to simplifie the code,
AbstractRedirectView,
AbstractAuthentificateView
AbstractUnAuthentificateView
2023-11-29 19:55:44 +01:00

16 lines
397 B
JavaScript

import AbstractAuthentificateView from "./AbstractAuthentificateView.js";
export default class extends AbstractAuthentificateView {
constructor(params) {
super(params);
this.setTitle("Home");
this.redirect_url = "/login"
}
async getHtml() {
return `
<h1>HOME</h1>
<a href="/logout" class="nav__link" data-link>Logout</a>
`;
}
}