From 47ff63b422cbd2aa440b8ea1b94677c27f42df55 Mon Sep 17 00:00:00 2001 From: Joshua Date: Thu, 15 Sep 2022 00:11:05 +0200 Subject: [PATCH] redirect the homepage to the source code --- src/routes/index.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/routes/index.ts b/src/routes/index.ts index 4407ea8..a5f6e50 100644 --- a/src/routes/index.ts +++ b/src/routes/index.ts @@ -1,4 +1,6 @@ +import { pogo } from "../../deps.ts" + export const method = ['*'] -export const handler = () => { - return "index" +export const handler = (r, h: pogo.Response) => { + return h.redirect(Deno.env.get("REDIRECT_URL") || "https://git.lio.cat/l/dreamland") } \ No newline at end of file