added first searchmodal draft
This commit is contained in:
@@ -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),
|
||||
});
|
||||
Reference in New Issue
Block a user