added didider stuff

This commit is contained in:
didier committed 2024-10-17 18:39:40 -04:00
1 parent 1e874b790d
commit 2948e5dabc
5 files changed
+151

No files matched your search

+18
View File
@@ -45,6 +45,24 @@ router.get("/reglement", async (ctx) => {
ctx.response.body = result.content;
});
router.get("/didier", async (ctx) => {
const template = await env.load("templates/didier.vto");
const result = await template({ tab: "home" });
ctx.response.body = result.content;
});
router.get("/didier/un", async (ctx) => {
const template = await env.load("templates/didier-un.vto");
const result = await template({ tab: "home" });
ctx.response.body = result.content;
});
router.get("/didier/deux", async (ctx) => {
const template = await env.load("templates/didier-deux.vto");
const result = await template({ tab: "home" });
ctx.response.body = result.content;
});
router.get("/login", async (ctx) => {
const username = ctx.request.url.searchParams.get("username") || "";
const password = ctx.request.url.searchParams.get("password") || "";