Skip to content

Commit

Permalink
feat: assign pet path
Browse files Browse the repository at this point in the history
I think no need to use `/assign/:pet_id` because they're already in body request
  • Loading branch information
macgeargear committed Jan 11, 2024
1 parent 5b5d0c2 commit d58594d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ func main() {
r.GetImage("/", imageHandler.FindByPetId)
r.PostImage("/", imageHandler.Upload)
r.DeleteImage("/:id", imageHandler.Delete)
r.AssignPet("/assign", imageHandler.AssignPet)

v1 := router.NewAPIv1(r, conf.App)

Expand Down

0 comments on commit d58594d

Please sign in to comment.