forked from baron/baron-sso
테넌트 조회 Mock API 추가
This commit is contained in:
@@ -176,6 +176,12 @@ export async function installDevApiMock(page: Page, state: DevApiMockState) {
|
|||||||
const { pathname, searchParams } = url;
|
const { pathname, searchParams } = url;
|
||||||
const method = request.method();
|
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") {
|
if (pathname === "/api/v1/dev/stats" && method === "GET") {
|
||||||
const total = state.clients.length;
|
const total = state.clients.length;
|
||||||
return json(route, {
|
return json(route, {
|
||||||
|
|||||||
Reference in New Issue
Block a user