Skip to content

Commit

Permalink
Fix/leave org api endpoint (#182)
Browse files Browse the repository at this point in the history
* fix: remove json content type from leave org endpoint

* fix: removed bru file for leaving org
  • Loading branch information
Zheng-Zhi-Qiang authored Jun 24, 2024
1 parent dac44f2 commit 24810ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/server/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func (s *ServerHandler) registerRoutes(r *mux.Router) {
r.Handle("/api/organization", isAuthenticated(getOrgIdFromRequestBody(isOrgOwner(s.psqlClient, handleUpdateOrganization(s.logger, s.psqlClient), s.logger), s.logger), s.logger)).Methods("PATCH").Headers("Content-Type", "application/json")
r.Handle("/api/organization", isAuthenticated(getOrgIdFromRequestBody(isOrgOwner(s.psqlClient, handleDeleteOrganization(s.logger, s.psqlClient), s.logger), s.logger), s.logger)).Methods("DELETE").Headers("Content-Type", "application/json")
r.Handle("/api/organization/{orgId}/members", isAuthenticated(handleGetOrganizationMembers(s.logger, s.psqlClient), s.logger)).Methods("GET")
r.Handle("/api/organization/{orgId}/membership", isAuthenticated(handleLeaveOrganization(s.logger, s.psqlClient), s.logger)).Methods("DELETE").Headers("Content-Type", "application/json")
r.Handle("/api/organization/{orgId}/membership", isAuthenticated(handleLeaveOrganization(s.logger, s.psqlClient), s.logger)).Methods("DELETE")

// Membership
r.Handle("/api/membership", isAuthenticated(handleGetMembershipsForUser(s.logger, s.psqlClient), s.logger)).Methods("GET")
Expand Down

0 comments on commit 24810ec

Please sign in to comment.