fmtm
fmtm copied to clipboard
Remove organisations/unapproved endpoints
Describe the bug
- We have two GET endpoints
/organisations/unapproved/
and/organisations/unapproved/{org_id}
that I don't think are necessary.
Expected behavior
- They should be removed in favour of the
/organisations/
endpoint, which filters approved/unapproved based on admin access. (https://github.com/hotosm/fmtm/pull/1253) - Requires coordination with the frontend to remove references to these endpoints.
- The DELETE
/unapproved
endpoint is required, due to different role access level.