add frontend

This commit is contained in:
AdrienLSH
2023-11-21 19:15:16 +01:00
parent 36d97eb58c
commit 45b782e94c
17 changed files with 228 additions and 0 deletions

View File

@ -0,0 +1,16 @@
import AbstractView from "./AbstractView.js";
export default class extends AbstractView {
constructor(params) {
super(params);
this.postId = params.id;
this.setTitle("Viewing Post");
}
async getHtml() {
return `
<h1>Post</h1>
<p>You are viewing post #${this.postId}.</p>
`;
}
}