feat(api): add redacted audit read endpoints

This commit is contained in:
chick
2026-07-18 00:44:23 +08:00
parent e45b011bb8
commit 53d9229b45
6 changed files with 690 additions and 0 deletions
+3
View File
@@ -46,6 +46,9 @@ describe('buildControlPlaneApp', () => {
const jobs = await app.inject({ method: 'GET', url: '/api/v1/jobs' });
expect(jobs.statusCode).toBe(200);
expect(jobs.json()).toEqual({ items: [], page: { page: 1, pageSize: 25, total: 0 } });
const audit = await app.inject({ method: 'GET', url: '/api/v1/audit' });
expect(audit.statusCode).toBe(200);
expect(audit.json()).toEqual({ items: [], page: { page: 1, pageSize: 25, total: 0 } });
await app.close();
});