You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
478 B
TypeScript
18 lines
478 B
TypeScript
import { Context } from "koa";
|
|
import { tempstream } from "tempstream";
|
|
import { Page } from "@sealcode/sealgen";
|
|
import html from "../html.js";
|
|
|
|
export const actionName = "Hello";
|
|
|
|
export default new (class HelloPage extends Page {
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
async canAccess(_: Context) {
|
|
return { canAccess: true, message: "" };
|
|
}
|
|
|
|
async render(ctx: Context) {
|
|
return html(ctx, "Hello", tempstream/* HTML */ `<div></div>`);
|
|
}
|
|
})();
|