landed community join and unjoin functionality

This commit is contained in:
2025-10-22 16:27:01 -06:00
parent 6d3403cd53
commit 11537d5d7f
7 changed files with 249 additions and 4 deletions
+4
View File
@@ -72,6 +72,10 @@ func setupEcho() *echo.Echo {
e.GET("/create_comm", ui.AmWrap(CreateCommunityForm))
e.POST("/create_comm", ui.AmWrap(CreateCommunity))
e.GET("/comm/:cid/profile", ui.AmWrap(ShowCommunity))
e.GET("/comm/:cid/join", ui.AmWrap(JoinCommunity))
e.POST("/comm/:cid/join", ui.AmWrap(JoinCommunityWithKey))
e.GET("/comm/:cid/unjoin", ui.AmWrap(UnjoinCommunity))
e.POST("/comm/:cid/unjoin", ui.AmWrap(UnjoinCommunityConfirm))
e.GET("/comm/:cid/admin", ui.AmWrap(CommunityAdminMenu))
e.GET("/comm/:cid/admin/profile", ui.AmWrap(CommunityProfileForm))
e.POST("/comm/:cid/admin/profile", ui.AmWrap(EditCommunityProfile))