(path, fetchConfig, body = {}, config)
| 18 | } |
| 19 | |
| 20 | function POST(path, fetchConfig, body = {}, config) { |
| 21 | return fetch( |
| 22 | path, |
| 23 | mergeDeepRight(fetchConfig, { |
| 24 | method: 'POST', |
| 25 | headers: getCSRFHeader(config), |
| 26 | body: body ? JSON.stringify(body) : null |
| 27 | }) |
| 28 | ); |
| 29 | } |
| 30 | |
| 31 | const request = {GET, POST}; |
| 32 |
nothing calls this directly
no test coverage detected
searching dependent graphs…