ignore folder

This commit is contained in:
2026-04-21 06:30:48 +07:00
commit ca00b36f19
70 changed files with 3871 additions and 0 deletions

8
services/tenant.ts Normal file
View File

@ -0,0 +1,8 @@
import { ApiResponse, TenantContextResponse } from "@/types/api";
import { apiClient } from "./api";
export async function getTenantContext(): Promise<TenantContextResponse> {
const response = await apiClient.get<ApiResponse<TenantContextResponse>>("/api/tenant/context");
if (!response.data.success) throw new Error(response.data.message);
return response.data.data;
}