Added a way to get the sub orgs of the current org

This commit is contained in:
Hari Krishna
2024-02-24 11:37:36 +00:00
parent 55fd580eb3
commit 1e510c6b84
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -4923,6 +4923,7 @@ 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/subOrg/{orgId}", shuffle.HandleGetSubOrg).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.