fetch('http://localhost:3001/customers', { method: 'POST', body: 'a=1' }) .then(res => res.json()) .then(json => console.log(json));