aboutsummaryrefslogtreecommitdiff
path: root/backend/api
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-12-11 16:34:10 +0300
committerGitHub <noreply@github.com>2023-12-11 16:34:10 +0300
commit28045d2635dff2c2b18cbcdc0da424b0ec7da0ac (patch)
treecb94ec913a230f6bd916b7a5bc3721b45e13ea10 /backend/api
parentfeat: add content to discussions list (#59) (diff)
downloadlphub-28045d2635dff2c2b18cbcdc0da424b0ec7da0ac.tar.gz
lphub-28045d2635dff2c2b18cbcdc0da424b0ec7da0ac.tar.bz2
lphub-28045d2635dff2c2b18cbcdc0da424b0ec7da0ac.zip
feat: add discussion comment posting (#59)
Diffstat (limited to 'backend/api')
-rw-r--r--backend/api/routes.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/api/routes.go b/backend/api/routes.go
index 2581a75..ed1ca90 100644
--- a/backend/api/routes.go
+++ b/backend/api/routes.go
@@ -68,6 +68,7 @@ func InitRoutes(router *gin.Engine) {
68 v1.GET(mapDiscussionsPath, handlers.FetchMapDiscussions) 68 v1.GET(mapDiscussionsPath, handlers.FetchMapDiscussions)
69 v1.GET(mapDiscussionIDPath, handlers.FetchMapDiscussion) 69 v1.GET(mapDiscussionIDPath, handlers.FetchMapDiscussion)
70 v1.POST(mapDiscussionsPath, CheckAuth, handlers.CreateMapDiscussion) 70 v1.POST(mapDiscussionsPath, CheckAuth, handlers.CreateMapDiscussion)
71 v1.POST(mapDiscussionIDPath, CheckAuth, handlers.CreateMapDiscussionComment)
71 v1.PUT(mapDiscussionIDPath, CheckAuth, handlers.EditMapDiscussion) 72 v1.PUT(mapDiscussionIDPath, CheckAuth, handlers.EditMapDiscussion)
72 v1.DELETE(mapDiscussionIDPath, CheckAuth, handlers.DeleteMapDiscussion) 73 v1.DELETE(mapDiscussionIDPath, CheckAuth, handlers.DeleteMapDiscussion)
73 // Rankings, search 74 // Rankings, search