(dataAPI: any, params = {}, headers = {}, otherProps = {})
| 29 | * @returns |
| 30 | */ |
| 31 | export function get(dataAPI: any, params = {}, headers = {}, otherProps = {}) { |
| 32 | const processedHeaders = { |
| 33 | Accept: 'application/json', |
| 34 | ...headers, |
| 35 | }; |
| 36 | const url = buildUrl(dataAPI, params); |
| 37 | return request(url, 'GET', null, processedHeaders, otherProps); |
| 38 | } |
| 39 | |
| 40 | /** |
| 41 | * do Post request |
no test coverage detected