Skip to content

Commit

Permalink
fixed review route
Browse files Browse the repository at this point in the history
  • Loading branch information
mevain committed Nov 25, 2024
1 parent b2c5761 commit 55d87a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/gateway/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ func main() {
user.Handle("/profile", middleware.MiddlewareAuth(jwtHandler, http.HandlerFunc(usersHandler.GetProfile), logger)).Methods(http.MethodGet)
user.Handle("/update/password", middleware.MiddlewareAuth(jwtHandler, http.HandlerFunc(usersHandler.UpdatePassword), logger)).Methods(http.MethodPut)
user.Handle("/profile", middleware.MiddlewareAuth(jwtHandler, http.HandlerFunc(usersHandler.UpdateProfile), logger)).Methods(http.MethodPut)
user.Handle("/{id}", middleware.MiddlewareAuth(jwtHandler, http.HandlerFunc(reviewsHandler.GetReviewsByUserIDHandler), logger)).Methods(http.MethodGet)

tripsHandler := httpTrips.NewTripHandler(tripsClient, logger)
trips := r.PathPrefix("/trips").Subrouter()
Expand Down

0 comments on commit 55d87a3

Please sign in to comment.