16 lines
433 B
JavaScript
16 lines
433 B
JavaScript
import AbstractAuthentificateView from "./AbstractAuthentifiedView.js";
|
|
|
|
export default class extends AbstractAuthentificateView {
|
|
constructor(params) {
|
|
super(params, "Home");
|
|
this.redirect_url = "/login"
|
|
}
|
|
|
|
async getHtml() {
|
|
return `
|
|
<h1>HOME</h1>
|
|
<a href="/me" class="nav__link" data-link>Me</a>
|
|
<a href="/logout" class="nav__link" data-link>Logout</a>
|
|
`;
|
|
}
|
|
} |