add clearTable command, simple webpage start

This commit is contained in:
creations 2025-03-18 21:07:15 -04:00
parent f14daf041a
commit 9a93e6269d
Signed by: creations
GPG key ID: 8F553AA4320FC711
10 changed files with 156 additions and 11 deletions

20
src/routes/auth/login.ts Normal file
View file

@ -0,0 +1,20 @@
import { getSetting } from "@config/sql/settings";
import { renderEjsTemplate } from "@helpers/ejs";
const routeDef: RouteDef = {
method: "GET",
accepts: "*/*",
returns: "text/html",
};
async function handler(): Promise<Response> {
const ejsTemplateData: EjsTemplateData = {
title: "Hello, World!",
instance_name:
(await getSetting("instance_name")) || "Unnamed Instance",
};
return await renderEjsTemplate("auth/login", ejsTemplateData);
}
export { handler, routeDef };