feat: add security audit seed data with real findings from code review
- Added seed-security.ts with comprehensive audit data for all 5 projects - Real findings from actual code inspection: auth, CORS, rate limiting, error handling, dependencies, TLS certs, infrastructure - 35 audit entries across Hammer Dashboard, Network App, Todo App, nKode, and Infrastructure - Fixed unused deleteAudit import warning in SecurityPage
This commit is contained in:
@@ -80,14 +80,14 @@ async function updateAudit(
|
||||
return res.json();
|
||||
}
|
||||
|
||||
// @ts-expect-error unused but kept for future use
|
||||
async function deleteAudit(id: string): Promise<void> {
|
||||
async function _deleteAudit(id: string): Promise<void> {
|
||||
const res = await fetch(`${BASE}/${id}`, {
|
||||
method: "DELETE",
|
||||
credentials: "include",
|
||||
});
|
||||
if (!res.ok) throw new Error("Failed to delete audit");
|
||||
}
|
||||
export { _deleteAudit as deleteAudit };
|
||||
|
||||
// ─── Helpers ───
|
||||
|
||||
|
||||
Reference in New Issue
Block a user