diff options
Diffstat (limited to 'backend/controllers')
| -rw-r--r-- | backend/controllers/modController.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backend/controllers/modController.go b/backend/controllers/modController.go index a8e0786..b26f1ae 100644 --- a/backend/controllers/modController.go +++ b/backend/controllers/modController.go | |||
| @@ -14,6 +14,7 @@ import ( | |||
| 14 | // @Summary Create map summary with specified map id. | 14 | // @Summary Create map summary with specified map id. |
| 15 | // @Tags maps | 15 | // @Tags maps |
| 16 | // @Produce json | 16 | // @Produce json |
| 17 | // @Param Authorization header string true "JWT Token" | ||
| 17 | // @Param id path int true "Map ID" | 18 | // @Param id path int true "Map ID" |
| 18 | // @Param request body models.CreateMapSummaryRequest true "Body" | 19 | // @Param request body models.CreateMapSummaryRequest true "Body" |
| 19 | // @Success 200 {object} models.Response{data=models.CreateMapSummaryRequest} | 20 | // @Success 200 {object} models.Response{data=models.CreateMapSummaryRequest} |
| @@ -99,6 +100,7 @@ func CreateMapSummary(c *gin.Context) { | |||
| 99 | // @Summary Edit map summary with specified map id. | 100 | // @Summary Edit map summary with specified map id. |
| 100 | // @Tags maps | 101 | // @Tags maps |
| 101 | // @Produce json | 102 | // @Produce json |
| 103 | // @Param Authorization header string true "JWT Token" | ||
| 102 | // @Param id path int true "Map ID" | 104 | // @Param id path int true "Map ID" |
| 103 | // @Param request body models.EditMapSummaryRequest true "Body" | 105 | // @Param request body models.EditMapSummaryRequest true "Body" |
| 104 | // @Success 200 {object} models.Response{data=models.EditMapSummaryRequest} | 106 | // @Success 200 {object} models.Response{data=models.EditMapSummaryRequest} |
| @@ -181,6 +183,7 @@ func EditMapSummary(c *gin.Context) { | |||
| 181 | // @Summary Delete map summary with specified map id. | 183 | // @Summary Delete map summary with specified map id. |
| 182 | // @Tags maps | 184 | // @Tags maps |
| 183 | // @Produce json | 185 | // @Produce json |
| 186 | // @Param Authorization header string true "JWT Token" | ||
| 184 | // @Param id path int true "Map ID" | 187 | // @Param id path int true "Map ID" |
| 185 | // @Param request body models.DeleteMapSummaryRequest true "Body" | 188 | // @Param request body models.DeleteMapSummaryRequest true "Body" |
| 186 | // @Success 200 {object} models.Response{data=models.DeleteMapSummaryRequest} | 189 | // @Success 200 {object} models.Response{data=models.DeleteMapSummaryRequest} |