mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-09-15 19:32:35 +00:00
15 lines
329 B
TypeScript
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,
|
|
},
|
|
});
|
|
}
|