wrote the code to handle attachment upload (and link from new-topic post)

This commit is contained in:
2025-11-17 21:50:53 -07:00
parent bf7504b6e9
commit 43bd810942
5 changed files with 169 additions and 15 deletions
+1
View File
@@ -74,6 +74,7 @@ func setupEcho() *echo.Echo {
e.GET("/sysadmin", ui.AmWrap(SysAdminMenu))
e.GET("/create_comm", ui.AmWrap(CreateCommunityForm))
e.POST("/create_comm", ui.AmWrap(CreateCommunity))
e.POST("/attachment_upload", ui.AmWrap(AttachmentUpload))
e.GET("/comm/:cid/profile", ui.AmWrap(ShowCommunity))
e.GET("/comm/:cid/join", ui.AmWrap(JoinCommunity))
e.POST("/comm/:cid/join", ui.AmWrap(JoinCommunityWithKey))