add threads n posts

This commit is contained in:
2025-05-18 17:55:03 +03:00
parent f5485702a8
commit 4039d6d299
7 changed files with 182 additions and 2 deletions

View File

@ -19,7 +19,7 @@ local ThreadCreateError = {
TOPIC_LOCKED = 3,
}
app:get("all_topics", "/", function(self)
app:get("all_topics", "", function(self)
self.topic_list = db.query("select * from topics limit 25;")
self.user = util.get_logged_in_user(self) or util.TransientUser
return {render = "topics.topics"}