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

@ -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}`