strona-czynna/src/back/routes/hello.page.ts
Kuba Orlik 15c6edf0a7 Eslint fix
Summary: Try to fix eslint issues

Reviewers: #reviewers

Subscribers: jenkins-user

Differential Revision: https://hub.sealcode.org/D1426
2024-04-09 13:16:59 +02:00

18 lines
483 B
TypeScript

import type { 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>`);
}
})();