Node WAST

const fetch = require('node-fetch');
2
3const url = 'https://api.moorse.io/v1/webhooks';
4const options = {method: 'GET', headers: {Accept: 'application/json'}};
5
6fetch(url, options)
7  .then(res => res.json())
8  .then(json => console.log(json))
9  .catch(err => console.error('error:' + err));
fboscato