Skip to content

Commit

Permalink
Merge pull request #61 from Ygg-Drasill/bugfix/endpoint-penalty-get
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
alexrefshauge authored Oct 25, 2024
2 parents 017d74d + 6cd32bf commit d8d2b95
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions backend/api/handlers/penaltyHandlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,13 @@ type GetPenaltyHistoryResponse struct {

// Get
//
// @Id get
// @Param ids query string true "ids"
// @Success 200 {array} PenaltyEntry
// @Router /penalty/get [get]
// @Id get
// @Schemes
// @Description Get penalties by ids
// @Tags penalty
// @Param ids query string true "ids"
// @Success 200 {array} PenaltyEntry
// @Router /penalty/get [get]
func (db *DbContext) Get(ctx *gin.Context) {
ids := ctx.Param("ids")
idList := strings.Split(ids, ",")
Expand Down

0 comments on commit d8d2b95

Please sign in to comment.