feat: connection audit shows last 7 days
CI / Build and Push (push) Successful in 26s
CI / SonarQube (push) Successful in 31s

This commit is contained in:
2026-05-14 12:08:06 +00:00
parent 7f717684eb
commit d542264567
3 changed files with 57 additions and 15 deletions
+4 -1
View File
@@ -166,8 +166,11 @@ export const api = {
await handle(res);
},
async listConnectionAudit(limit = 200): Promise<ConnectionAuditRow[]> {
async listConnectionAudit(limit = 200, daysBack?: number): Promise<ConnectionAuditRow[]> {
const q = new URLSearchParams({ limit: String(limit) });
if (daysBack !== undefined) {
q.set("days_back", String(daysBack));
}
const res = await fetch(`/api/audit/connections?${q.toString()}`, {
credentials: "include",
});