diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-06-29 11:57:53 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-06-29 11:57:53 +0300 |
| commit | 85c6da965ec401dabb162df09160b4ce9dc28413 (patch) | |
| tree | bc62d79f948d8264b1a95c9d360883f5e8d7fc83 /backend/controllers/modController.go | |
| parent | fix: auth sql typo (diff) | |
| download | lphub-85c6da965ec401dabb162df09160b4ce9dc28413.tar.gz lphub-85c6da965ec401dabb162df09160b4ce9dc28413.tar.bz2 lphub-85c6da965ec401dabb162df09160b4ce9dc28413.zip | |
feat: route id in map summary, update docs
Former-commit-id: f8db004d2c17f09f665e51ec4e730418248bfd07
Diffstat (limited to 'backend/controllers/modController.go')
| -rw-r--r-- | backend/controllers/modController.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/backend/controllers/modController.go b/backend/controllers/modController.go index ebf1cb7..9d14f92 100644 --- a/backend/controllers/modController.go +++ b/backend/controllers/modController.go | |||
| @@ -14,9 +14,10 @@ import ( | |||
| 14 | // @Summary Edit map summary with specified map id. | 14 | // @Summary Edit map summary with specified map id. |
| 15 | // @Tags maps | 15 | // @Tags maps |
| 16 | // @Produce json | 16 | // @Produce json |
| 17 | // @Param id path int true "Map ID" | 17 | // @Param id path int true "Map ID" |
| 18 | // @Success 200 {object} models.Response{data=models.EditMapSummaryRequest} | 18 | // @Param request body models.EditMapSummaryRequest true "Body" |
| 19 | // @Failure 400 {object} models.Response | 19 | // @Success 200 {object} models.Response{data=models.EditMapSummaryRequest} |
| 20 | // @Failure 400 {object} models.Response | ||
| 20 | // @Router /maps/{id}/summary [put] | 21 | // @Router /maps/{id}/summary [put] |
| 21 | func EditMapSummary(c *gin.Context) { | 22 | func EditMapSummary(c *gin.Context) { |
| 22 | // Check if user exists | 23 | // Check if user exists |