redirect to topics on root
This commit is contained in:
		
							
								
								
									
										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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user