Send exclusions to api when searching all entities
This commit is contained in:
parent
8d41e377ed
commit
e2113e0910
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue