Files
nginx-proxy-manager/frontend/src/api/backend/getAuditLogs.ts
2025-09-15 15:56:24 +10:00

15 lines
329 B
TypeScript

import * as api from "./base";
import type { AuditLog } from "./models";
export type AuditLogExpansion = "user";
export async function getAuditLogs(expand?: AuditLogExpansion[], params = {}): Promise<AuditLog[]> {
return await api.get({
url: "/audit-log",
params: {
expand: expand?.join(","),
...params,
},
});
}