Add new api endpoint for searching all resources
This commit is contained in:
parent
b3b3c5c960
commit
97ea666561
1 changed files with 9 additions and 0 deletions
|
|
@ -69,6 +69,15 @@ class Api {
|
|||
}
|
||||
})
|
||||
}
|
||||
|
||||
searchAll(query: string) {
|
||||
const resourceUrl = `${this.url}/search`
|
||||
return axios.post(`${resourceUrl}`, {
|
||||
search: {
|
||||
query: query,
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
check(resource: string, value: string) {
|
||||
const resourceUrl = `${this.url}/check/${resource}`
|
||||
|
|
|
|||
Loading…
Reference in a new issue