Skip to content

Commit

Permalink
use post in get athletes by id list to pass list as json
Browse files Browse the repository at this point in the history
  • Loading branch information
konrad2002 committed Nov 20, 2024
1 parent 56d7c9b commit 85f5afa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controller/athlete_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ func athleteController() {
router.GET("/athlete/name_year", getAthleteByNameAndYear)
router.GET("/athlete/alias_year", getAthleteByAliasAndYear)
router.GET("/athlete/meet/:meet_id", getAthletesByMeeting)
router.GET("/athlete/meet/:meet_id/id-list/", getAthletesByMeetingAndIdList)
router.GET("/athlete/team/:team_id", getAthletesByTeam)
router.GET("/athlete/team/:team_id/meet/:meet_id", getAthletesByTeamAndMeeting)

Expand All @@ -30,6 +29,8 @@ func athleteController() {
router.POST("/athlete/participation", addParticipation)
router.PUT("/athlete", updateAthlete)

router.POST("/athlete/meet/:meet_id/id-list/", getAthletesByMeetingAndIdList)

router.HEAD("/athlete", getAthletes)
router.HEAD("/athlete/:id", getAthlete)
}
Expand Down

0 comments on commit 85f5afa

Please sign in to comment.