Add new api endpoint for searching all resources

This commit is contained in:
Justin Edmund 2023-07-05 18:48:42 -07:00
parent b3b3c5c960
commit 97ea666561

View file

@ -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, {