9 lines
396 B
TypeScript
9 lines
396 B
TypeScript
import { apiDelete, apiGet } from "./axios";
|
|
import type { ApiListResponse } from "../types/api";
|
|
|
|
export const fetchAuditLogs = (studyId: string, params?: Record<string, any>) =>
|
|
apiGet<ApiListResponse<any>>(`/api/v1/studies/${studyId}/audit-logs/`, { params });
|
|
|
|
export const deleteAuditLog = (studyId: string, logId: string) =>
|
|
apiDelete(`/api/v1/studies/${studyId}/audit-logs/${logId}`);
|