We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c900fbe commit 1f2881dCopy full SHA for 1f2881d
2 files changed
src/api/auth.ts
@@ -6,6 +6,6 @@ export async function getAuthOverview(client: ApiClient): Promise<AuthOverviewRe
6
}
7
8
export async function getOrganizations(client: ApiClient): Promise<OrganizationRes[]> {
9
- const response = await client.get<OrganizationListRes>("/auth/organizations");
+ const response = await client.get<OrganizationListRes>("/auth/organization");
10
return response.data;
11
test/unit/api/auth.test.ts
@@ -38,6 +38,6 @@ describe("getOrganizations", () => {
38
{ id: "org_01", name: "Alpha Corp" },
39
{ id: "org_02", name: "Beta Inc" },
40
]);
41
- expect(mockClient.get).toHaveBeenCalledWith("/auth/organizations");
+ expect(mockClient.get).toHaveBeenCalledWith("/auth/organization");
42
});
43
0 commit comments