/
afanasevn
/
MaxSystems
Обзор
Документация
Войти
/
afanasevn
/
MaxSystems
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
client/src/api/audit.ts
16 строк
371 B
IBS\NAfanasev
extended logging added
20 июн 2026, 15:59
20 июн 2026, 15:59
1d84544
Код
Авторство
О чём код?
import { apiGet } from './http' export type AuditLogItem = { id: string userId: string | null userName: string | null action: string entity: string entityId: string | null message: string createdAt: string } export function fetchAuditLogs(limit = 100): Promise<AuditLogItem[]> { return apiGet<AuditLogItem[]>(`/api/admin/audit-logs?limit=${limit}`) }