diff --git a/utils/api.tsx b/utils/api.tsx index 63ac5ba4..e5e01ca1 100644 --- a/utils/api.tsx +++ b/utils/api.tsx @@ -70,11 +70,15 @@ class Api { }) } - searchAll(query: string, locale: string) { + searchAll(query: string, exclude: string[], locale: string) { const resourceUrl = `${this.url}/search` + // Also send list of Granblue IDs + // so the backend can exclude opposites and duplicates + // Maybe store them in state??? return axios.post(`${resourceUrl}`, { search: { query: query, + exclude: exclude, locale: locale } })