Skip to content

Commit

Permalink
fix: BanUserForever router conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
ppolariss committed Oct 10, 2024
1 parent cd4346c commit 3189621
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apis/penalty/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,8 @@ func listPunishmentsByUserID(userID int) ([]Punishment, error) {
}

func RegisterRoutes(app fiber.Router) {
app.Post("/penalty/:id", BanUser)
app.Post("/penalty/:id/_forever", BanUserForever)
app.Post("/penalty/:id<int>/_forever", BanUserForever)
app.Post("/penalty/:id<int>", BanUser)
app.Get("/users/me/punishments", ListMyPunishments)
app.Get("/users/:id/punishments", ListPunishmentsByUserID)
}

0 comments on commit 3189621

Please sign in to comment.