function createRsvpEntry(rsvp) { } async function getRsvps() { // token is test:test for now const resp = await fetch('/api/rsvps', { headers: { 'Authorization': 'Basic dGVzdDp0ZXN0'} }) JSON.parse(resp.body) } window.onload = async function () { await getRsvps(); };