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
|
|
@ -70,6 +70,15 @@ class Api {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
searchAll(query: string) {
|
||||||
|
const resourceUrl = `${this.url}/search`
|
||||||
|
return axios.post(`${resourceUrl}`, {
|
||||||
|
search: {
|
||||||
|
query: query,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
check(resource: string, value: string) {
|
check(resource: string, value: string) {
|
||||||
const resourceUrl = `${this.url}/check/${resource}`
|
const resourceUrl = `${this.url}/check/${resource}`
|
||||||
return axios.post(resourceUrl, {
|
return axios.post(resourceUrl, {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue