diff options
Diffstat (limited to 'backend/handlers/record.go')
| -rw-r--r-- | backend/handlers/record.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/backend/handlers/record.go b/backend/handlers/record.go index 70095bf..4b0fafa 100644 --- a/backend/handlers/record.go +++ b/backend/handlers/record.go | |||
| @@ -210,6 +210,16 @@ func CreateRecordWithDemo(c *gin.Context) { | |||
| 210 | }) | 210 | }) |
| 211 | } | 211 | } |
| 212 | 212 | ||
| 213 | // DELETE Record | ||
| 214 | // | ||
| 215 | // @Description Delete record with specified map and record id. | ||
| 216 | // @Tags maps | ||
| 217 | // @Produce json | ||
| 218 | // @Param mapid path int true "Map ID" | ||
| 219 | // @Param recordid path int true "Record ID" | ||
| 220 | // @Param Authorization header string true "JWT Token" | ||
| 221 | // @Success 200 {object} models.Response | ||
| 222 | // @Router /maps/{mapid}/record/{recordid} [delete] | ||
| 213 | func DeleteRecord(c *gin.Context) { | 223 | func DeleteRecord(c *gin.Context) { |
| 214 | mapID, err := strconv.Atoi(c.Param("mapid")) | 224 | mapID, err := strconv.Atoi(c.Param("mapid")) |
| 215 | if err != nil { | 225 | if err != nil { |