(dataAPI: string, params?: object, headers?: object, otherProps?: object)
| 24 | } |
| 25 | |
| 26 | export function get(dataAPI: string, params?: object, headers?: object, otherProps?: object): Promise<any> { |
| 27 | const fetchHeaders = { |
| 28 | Accept: 'application/json', |
| 29 | ...headers, |
| 30 | }; |
| 31 | return request(buildUrl(dataAPI, params), 'GET', undefined, fetchHeaders, otherProps); |
| 32 | } |
| 33 | |
| 34 | export function post(dataAPI: string, params?: object, headers?: object, otherProps?: object): Promise<any> { |
| 35 | const fetchHeaders = { |
no test coverage detected