ft_transcendence/frontend/static/js/views/PostView.js

16 lines
337 B
JavaScript
Raw Normal View History

2023-11-21 13:15:16 -05:00
import AbstractView from "./AbstractView.js";
export default class extends AbstractView {
constructor(params) {
2023-11-30 07:05:46 -05:00
super(params, "Viewing Post");
2023-11-21 13:15:16 -05:00
this.postId = params.id;
}
async getHtml() {
return `
<h1>Post</h1>
<p>You are viewing post #${this.postId}.</p>
`;
}
}