1
0
forked from baron/baron-sso

클라이언트 대시보드 통계 실지표 연동 및 백엔드 API 구현

This commit is contained in:
2026-03-03 14:06:27 +09:00
parent 8db37c377a
commit 20c97843c3
6 changed files with 530 additions and 101 deletions

View File

@@ -20,6 +20,12 @@ export type ClientListResponse = {
offset: number;
};
export type DevStats = {
total_clients: number;
active_sessions: number;
auth_failures_24h: number;
};
export type DevAuditLog = {
event_id: string;
timestamp: string;
@@ -121,6 +127,11 @@ export async function fetchClients() {
return data;
}
export async function fetchDevStats() {
const { data } = await apiClient.get<DevStats>("/dev/stats");
return data;
}
export async function fetchClient(clientId: string) {
const { data } = await apiClient.get<ClientDetailResponse>(
`/dev/clients/${clientId}`,