( url, data, options = {} )
| 206 | } |
| 207 | |
| 208 | export async function postJson ( url, data, options = {} ) { |
| 209 | const { data: responseData } = await request( url, { |
| 210 | ...options, |
| 211 | data, |
| 212 | method: 'POST', |
| 213 | responseType: 'json' |
| 214 | } ) |
| 215 | |
| 216 | return responseData |
| 217 | } |
| 218 | |
| 219 | export async function requestJson ( input, options = {} ) { |
| 220 | const { data } = await request( input, { |
no test coverage detected