modifed the endopoint
This commit is contained in:
@@ -4923,8 +4923,8 @@ func initHandlers() {
|
||||
r.HandleFunc("/api/v1/orgs/{orgId}/change", shuffle.HandleChangeUserOrg).Methods("POST", "OPTIONS") // Swaps to the org
|
||||
|
||||
r.HandleFunc("/api/v1/orgs/{orgId}", shuffle.HandleDeleteOrg).Methods("DELETE", "OPTIONS")
|
||||
r.HandleFunc("/api/v1/sub_orgs/{orgId}", shuffle.HandleGetSubOrgs).Methods("GET", "OPTIONS")
|
||||
|
||||
r.HandleFunc("/api/v1/orgs/{orgId}/suborgs", shuffle.HandleGetSubOrgs).Methods("GET", "OPTIONS")
|
||||
|
||||
// This is a new API that validates if a key has been seen before.
|
||||
// Not sure what the best course of action is for it.
|
||||
r.HandleFunc("/api/v1/environments/{key}/stop", shuffle.HandleStopExecutions).Methods("GET", "POST", "OPTIONS")
|
||||
|
||||
@@ -1120,7 +1120,7 @@ If you're interested, please let me know a time that works for you, or set up a
|
||||
return;
|
||||
}
|
||||
|
||||
fetch(`${globalUrl}/api/v1/sub_orgs/${orgId}`, {
|
||||
fetch(`${globalUrl}/api/v1/orgs/${orgId}/suborgs`, {
|
||||
method: "GET",
|
||||
credentials: "include",
|
||||
headers: {
|
||||
|
||||
Reference in New Issue
Block a user