Merge pull request #1342 from satti-hari-krishna-reddy/subOrg

added a way to get sub orgs of the current org
This commit is contained in:
Frikky
2024-03-15 14:39:57 +01:00
committed by GitHub
2 changed files with 350 additions and 12 deletions
+2 -1
View File
@@ -4929,7 +4929,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/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")