Skip to content

Commit 1f2881d

Browse files
committed
fix: correct org list API path to /auth/organization
1 parent c900fbe commit 1f2881d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/api/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ export async function getAuthOverview(client: ApiClient): Promise<AuthOverviewRe
66
}
77

88
export async function getOrganizations(client: ApiClient): Promise<OrganizationRes[]> {
9-
const response = await client.get<OrganizationListRes>("/auth/organizations");
9+
const response = await client.get<OrganizationListRes>("/auth/organization");
1010
return response.data;
1111
}

test/unit/api/auth.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ describe("getOrganizations", () => {
3838
{ id: "org_01", name: "Alpha Corp" },
3939
{ id: "org_02", name: "Beta Inc" },
4040
]);
41-
expect(mockClient.get).toHaveBeenCalledWith("/auth/organizations");
41+
expect(mockClient.get).toHaveBeenCalledWith("/auth/organization");
4242
});
4343
});

0 commit comments

Comments
 (0)