Skip to content

Commit

Permalink
fix: pet create url
Browse files Browse the repository at this point in the history
  • Loading branch information
bookpanda committed Jan 9, 2024
1 parent 797e5a4 commit 88d4f6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func main() {

r.GetPet("/", petHandler.FindAll)
r.GetPet("/:id", petHandler.FindOne)
r.PostPet("/create", petHandler.Create)
r.PostPet("/", petHandler.Create)
r.PutPet("/:id", petHandler.Update)
r.PutPet("/:id/adopt", petHandler.Adopt)
r.PutPet("/:id/visible", petHandler.ChangeView)
Expand Down

0 comments on commit 88d4f6d

Please sign in to comment.