redirect to topics on root

This commit is contained in:
Lera Elvoé 2025-05-20 13:12:31 +03:00
parent f1f218fc75
commit 8c7ef09567
Signed by: yagich
SSH Key Fingerprint: SHA256:6xjGb6uA7lAVcULa7byPEN//rQ0wPoG+UzYVMfZnbvc

View File

@ -25,8 +25,8 @@ app:include("apps.users", {path = "/user"})
app:include("apps.topics", {path = "/topics"}) app:include("apps.topics", {path = "/topics"})
app:include("apps.threads", {path = "/threads"}) app:include("apps.threads", {path = "/threads"})
app:get("/", function() app:get("/", function(self)
return "Welcome to Lapis " .. require("lapis.version") return {redirect_to = self:url_for("all_topics")}
end) end)
return app return app