(url = '', data = {})
| 1 | export async function fetchPost(url = '', data = {}) { |
| 2 | const response = await fetch(url, { |
| 3 | method: 'POST', |
| 4 | headers: { 'Content-Type': 'application/json' }, |
| 5 | body: JSON.stringify(data), |
| 6 | }) |
| 7 | return response.json() |
| 8 | } |
no outgoing calls
no test coverage detected