Page MenuHomeSealhub

hello.page.ts
No OneTemporary

hello.page.ts

import { Context } from "koa";
import { tempstream } from "tempstream";
import { Page } from "@sealcode/sealgen";
import html from "../html";
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>`);
}
})();

File Metadata

Mime Type
text/x-java
Expires
Mon, Dec 23, 00:57 (4 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
556764
Default Alt Text
hello.page.ts (475 B)

Event Timeline