redirect to topics on root
This commit is contained in:
parent
f1f218fc75
commit
8c7ef09567
4
app.lua
4
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
|
||||
|
Loading…
Reference in New Issue
Block a user