diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-12-11 16:34:10 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-11 16:34:10 +0300 |
| commit | 28045d2635dff2c2b18cbcdc0da424b0ec7da0ac (patch) | |
| tree | cb94ec913a230f6bd916b7a5bc3721b45e13ea10 /backend/api/routes.go | |
| parent | feat: add content to discussions list (#59) (diff) | |
| download | lphub-28045d2635dff2c2b18cbcdc0da424b0ec7da0ac.tar.gz lphub-28045d2635dff2c2b18cbcdc0da424b0ec7da0ac.tar.bz2 lphub-28045d2635dff2c2b18cbcdc0da424b0ec7da0ac.zip | |
feat: add discussion comment posting (#59)
Diffstat (limited to 'backend/api/routes.go')
| -rw-r--r-- | backend/api/routes.go | 1 |
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 |