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
473 B
TypeScript
18 lines
473 B
TypeScript
import { BaseContext } from "koa";
|
|
import { tempstream } from "tempstream";
|
|
import { Page } from "../../page/page";
|
|
|
|
export const actionName = "ShowRoute";
|
|
|
|
export default new (class ShowRoutePage extends Page {
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
async canAccess(_: BaseContext) {
|
|
return { canAccess: true, message: "" };
|
|
}
|
|
|
|
async render(ctx: BaseContext) {
|
|
const id = ctx.params.id;
|
|
return tempstream/* HTML */ `<div></div>`;
|
|
}
|
|
})();
|