ft_transcendence/frontend/static/js/views/PostView.js
2023-11-21 19:15:16 +01:00

17 lines
360 B
JavaScript

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>
`;
}
}