diff --git a/utils/api.tsx b/utils/api.tsx index bba56760..7ef3f082 100644 --- a/utils/api.tsx +++ b/utils/api.tsx @@ -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}`