1
0
forked from baron/baron-sso

테넌트 조회 API 연동

This commit is contained in:
2026-03-19 13:04:59 +09:00
parent 2ebe2c5613
commit 77c6610e70
2 changed files with 13 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ import apiClient from "../../lib/apiClient";
export interface Tenant {
id: string;
name: string;
phone?: string;
slug: string;
}
@@ -10,6 +11,7 @@ export interface UserProfile {
id: string;
email: string;
name: string;
phone?: string;
role: string;
phone?: string;
companyCode?: string;

View File

@@ -266,3 +266,14 @@ export async function fetchDevAuditLogs(
);
return data;
}
export type TenantSummary = {
id: string;
name: string;
slug: string;
};
export async function fetchMyTenants() {
const { data } = await apiClient.get<TenantSummary[]>("/dev/my-tenants");
return data;
}