Co-authored-by: felix-fx-top <253056634+felix-fx-top@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot] 2026-03-30 13:47:44 +00:00
parent 5db5a734ae
commit 26f2c584c6

View File

@ -4,13 +4,6 @@ const SUPABASE_URL = import.meta.env.VITE_SUPABASE_URL;
async function callFetchMods(params: Record<string, string>) {
const searchParams = new URLSearchParams(params);
const { data, error } = await supabase.functions.invoke("fetch-mods", {
method: "GET",
headers: { "Content-Type": "application/json" },
body: null,
});
// Use direct fetch for GET with query params
const url = `${SUPABASE_URL}/functions/v1/fetch-mods?${searchParams.toString()}`;
const response = await fetch(url, {
headers: {