Skip to content

Commit

Permalink
fix: slash in route
Browse files Browse the repository at this point in the history
  • Loading branch information
litsynp committed Apr 2, 2024
1 parent f11e4aa commit e1fe5a1
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 @@ -99,10 +99,10 @@ func NewRouter(app *firebaseinfra.FirebaseApp) *echo.Echo {

userApiGroup := apiRouteGroup.Group("/users")
{
userApiGroup.POST("/", userHandler.RegisterUser)
userApiGroup.POST("", userHandler.RegisterUser)
userApiGroup.POST("/check/nickname", userHandler.CheckUserNickname)
userApiGroup.POST("/status", userHandler.FindUserStatusByEmail)
userApiGroup.GET("/", userHandler.FindUsers)
userApiGroup.GET("", userHandler.FindUsers)
userApiGroup.GET("/me", userHandler.FindMyProfile)
userApiGroup.PUT("/me", userHandler.UpdateMyProfile)
userApiGroup.DELETE("/me", userHandler.DeleteMyAccount)
Expand All @@ -112,7 +112,7 @@ func NewRouter(app *firebaseinfra.FirebaseApp) *echo.Echo {

breedApiGroup := apiRouteGroup.Group("/breeds")
{
breedApiGroup.GET("/", breedHandler.FindBreeds)
breedApiGroup.GET("", breedHandler.FindBreeds)
}

postApiGroup := apiRouteGroup.Group("/posts")
Expand Down

0 comments on commit e1fe5a1

Please sign in to comment.