diff --git a/api/handlers.go b/api/handlers.go index f8d65f1..665f4e0 100644 --- a/api/handlers.go +++ b/api/handlers.go @@ -2850,3 +2850,5 @@ func containsAny(s string, subs ...string) bool { } return false } + +// UpdateOrg handles PUT /api/orgs/{orgId} — update org name, domains, role, website diff --git a/api/routes.go b/api/routes.go index b35507d..56a2fcf 100644 --- a/api/routes.go +++ b/api/routes.go @@ -98,6 +98,7 @@ func NewRouter(db *lib.DB, cfg *lib.Config, store lib.ObjectStore, websiteFS fs. // Organizations (platform level) r.Get("/orgs", h.ListOrgs) r.Post("/orgs", h.CreateOrg) + r.Put("/orgs/{orgID}", h.UpdateOrg) r.Get("/orgs/{orgID}", h.GetOrg) r.Patch("/orgs/{orgID}", h.UpdateOrg) diff --git a/portal/templates/app/orgs.html b/portal/templates/app/orgs.html index 72c97ce..859ce18 100644 --- a/portal/templates/app/orgs.html +++ b/portal/templates/app/orgs.html @@ -1,6 +1,6 @@ {{define "content"}} -
-
+
+

Organizations

Company directory — parties eligible to participate in deals.

@@ -11,7 +11,6 @@
Loading...
@@ -23,17 +22,17 @@

New Organization

-
-
-
- -

Comma-separated. Only emails from these domains can be invited for this org.

-
+
+
+
+ +

Comma-separated. Used to validate invite emails.

+
-
+
@@ -41,38 +40,80 @@
+ + + {{end}} {{define "scripts"}} {{end}}