Skip to content

Commit

Permalink
fix: router path pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
litsynp committed Apr 15, 2024
1 parent 309e322 commit a28d9b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/server/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ func NewRouter(app *firebaseinfra.FirebaseApp) *echo.Echo {
userApiGroup.DELETE("/me", userHandler.DeleteMyAccount)
userApiGroup.GET("/me/pets", userHandler.FindMyPets)
userApiGroup.PUT("/me/pets", userHandler.AddMyPets)
userApiGroup.PUT("/me/pets/{petID}", userHandler.UpdateMyPet)
userApiGroup.DELETE("/me/pets/{petID}", userHandler.DeleteMyPet)
userApiGroup.PUT("/me/pets/:petID", userHandler.UpdateMyPet)
userApiGroup.DELETE("/me/pets/:petID", userHandler.DeleteMyPet)
}

breedApiGroup := apiRouteGroup.Group("/breeds")
Expand All @@ -120,7 +120,7 @@ func NewRouter(app *firebaseinfra.FirebaseApp) *echo.Echo {
postApiGroup := apiRouteGroup.Group("/posts")
{
postApiGroup.POST("/sos", sosPostHandler.WriteSosPost)
postApiGroup.GET("/sos/{id}", sosPostHandler.FindSosPostByID)
postApiGroup.GET("/sos/:id", sosPostHandler.FindSosPostByID)
postApiGroup.GET("/sos", sosPostHandler.FindSosPosts)
postApiGroup.PUT("/sos", sosPostHandler.UpdateSosPost)
postApiGroup.GET("/sos/conditions", conditionHandler.FindConditions)
Expand Down

0 comments on commit a28d9b0

Please sign in to comment.