implemented topic hide/show

This commit is contained in:
2026-01-19 22:10:38 -07:00
parent ca8a92eaa3
commit 309d7dc9d1
4 changed files with 59 additions and 4 deletions
+2
View File
@@ -99,6 +99,8 @@ func setupEcho() *echo.Echo {
confGroup.POST("/new_topic", ui.AmWrap(NewTopic))
confGroup.GET("/r/:topic", ui.AmWrap(ReadPosts), ui.SetTopic)
confGroup.POST("/r/:topic", ui.AmWrap(PostInTopic), ui.SetTopic)
opsGroup := confGroup.Group("/op/:topic", ui.SetTopic)
opsGroup.GET("/hide", ui.AmWrap(HideTopic))
return e
}