From 11403b21510c3f37407c253ee8fda4c62808c8c5 Mon Sep 17 00:00:00 2001 From: kyy Date: Mon, 15 Jun 2026 11:53:12 +0900 Subject: [PATCH] =?UTF-8?q?=ED=85=8C=EB=84=8C=ED=8A=B8=20=EC=A1=B0?= =?UTF-8?q?=ED=9A=8C=20=EA=B2=BD=EB=A1=9C=EC=99=80=20=ED=85=8C=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8=20=EA=B8=B0=EB=8C=80=EA=B0=92=20=EC=A0=95=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- devfront/src/lib/devApi.test.ts | 10 ++++++++-- devfront/src/lib/devApi.ts | 6 ++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/devfront/src/lib/devApi.test.ts b/devfront/src/lib/devApi.test.ts index 89d44507..9868fba6 100644 --- a/devfront/src/lib/devApi.test.ts +++ b/devfront/src/lib/devApi.test.ts @@ -65,8 +65,14 @@ describe("devApi", () => { expect(apiClient.get).toHaveBeenCalledWith("/dev/rp-usage/daily", { params: { days: 30, period: "week" }, }); - expect(apiClient.get).toHaveBeenCalledWith("/tenants", { - params: { limit: 25, offset: 50, parentId: "tenant-parent" }, + expect(apiClient.get).toHaveBeenCalledWith("/admin/tenants", { + params: { + limit: 25, + offset: 50, + parentId: "tenant-parent", + cursor: undefined, + search: undefined, + }, }); expect(apiClient.get).toHaveBeenCalledWith("/dev/clients/client-a"); expect(apiClient.get).toHaveBeenCalledWith( diff --git a/devfront/src/lib/devApi.ts b/devfront/src/lib/devApi.ts index d7488cb1..de7f4eb7 100644 --- a/devfront/src/lib/devApi.ts +++ b/devfront/src/lib/devApi.ts @@ -283,9 +283,11 @@ export async function fetchTenants( limit = 1000, offset = 0, parentId?: string, + cursor?: string, + search?: string, ) { - const { data } = await apiClient.get("/tenants", { - params: { limit, offset, parentId }, + const { data } = await apiClient.get("/admin/tenants", { + params: { limit, offset, parentId, cursor, search }, }); return data; }