round26: Ping vor Portscan, Liste neuer Dienste, Suchmaschinen-Integration (OpenSearch), API-Scanner

This commit is contained in:
2026-07-24 02:21:58 +02:00
parent 458f58af6f
commit 0fc063b2a2
17 changed files with 507 additions and 4 deletions

View File

@@ -0,0 +1,25 @@
import { useQuery } from "@tanstack/react-query";
export interface DetectedApiEntry {
id: string;
serviceId: string;
path: string;
type: string;
status: number;
detectedAt: string;
}
async function fetchDetectedApis(): Promise<DetectedApiEntry[]> {
const res = await fetch("/api/detected-apis");
if (!res.ok) {
throw new Error(`APIs konnten nicht geladen werden (HTTP ${res.status})`);
}
return res.json();
}
export function useDetectedApis() {
return useQuery({
queryKey: ["detected-apis"],
queryFn: fetchDetectedApis,
});
}