1
0
forked from baron/baron-sso

테넌트 조회 Mock API 추가

This commit is contained in:
2026-03-19 13:04:00 +09:00
parent 0f82932b35
commit 2ebe2c5613

View File

@@ -176,6 +176,12 @@ export async function installDevApiMock(page: Page, state: DevApiMockState) {
const { pathname, searchParams } = url;
const method = request.method();
if (pathname === "/api/v1/dev/my-tenants" && method === "GET") {
return json(route, [
{ id: "tenant-a", name: "Tenant A", slug: "tenant-a" },
]);
}
if (pathname === "/api/v1/dev/stats" && method === "GET") {
const total = state.clients.length;
return json(route, {