From 8c7ef09567ea59df64b3ecf192a15e51709c45dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lera=20Elvo=C3=A9?= Date: Tue, 20 May 2025 13:12:31 +0300 Subject: [PATCH] redirect to topics on root --- app.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.lua b/app.lua index 9baf2a0..535c5e8 100644 --- a/app.lua +++ b/app.lua @@ -25,8 +25,8 @@ app:include("apps.users", {path = "/user"}) app:include("apps.topics", {path = "/topics"}) app:include("apps.threads", {path = "/threads"}) -app:get("/", function() - return "Welcome to Lapis " .. require("lapis.version") +app:get("/", function(self) + return {redirect_to = self:url_for("all_topics")} end) return app