mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-09-16 03:42:34 +00:00
Audit log table and modal
This commit is contained in:
14
frontend/src/api/backend/getAuditLogs.ts
Normal file
14
frontend/src/api/backend/getAuditLogs.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
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,
|
||||
},
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user