added first searchmodal draft

This commit is contained in:
kasun committed 2026-06-24 00:58:45 +02:00
1 parent a542d23c00
commit b7bc8f5525
9 files changed
+175 -53

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
import { apiFetch } from "./client";
import type { AuthResponse } from "../types/connection";
import type { SearchRequest } from "../types/search";
export const search = (req: SearchRequest) =>
apiFetch<AuthResponse>("/search", {
method: "POST",
body: JSON.stringify(req),
});