add list domains for org endpoint

This commit is contained in:
miloschwartz 2025-02-16 18:09:17 -05:00
parent 851bedb2e5
commit 82f990eb8b
No known key found for this signature in database
7 changed files with 136 additions and 7 deletions

View file

@ -3,6 +3,7 @@ import config from "@server/lib/config";
import * as site from "./site";
import * as org from "./org";
import * as resource from "./resource";
import * as domain from "./domain";
import * as target from "./target";
import * as user from "./user";
import * as auth from "./auth";
@ -133,6 +134,13 @@ authenticated.get(
resource.listResources
);
authenticated.get(
"/org/:orgId/domains",
verifyOrgAccess,
verifyUserHasAction(ActionsEnum.listOrgDomains),
domain.listDomains
);
authenticated.post(
"/org/:orgId/create-invite",
verifyOrgAccess,