Changes
Co-authored-by: felix-fx-top <253056634+felix-fx-top@users.noreply.github.com>
This commit is contained in:
parent
5db5a734ae
commit
26f2c584c6
@ -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: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user