diff --git a/js/alx911.js b/js/alx911.js index b0ba2da..fbf03b7 100644 --- a/js/alx911.js +++ b/js/alx911.js @@ -107,7 +107,7 @@ // API: Fetch Calls List const fetchCalls = async (cursor = null) => { try { - const url = new URL('/api/calls', window.location.origin); + const url = new URL('https://alx911-api.danielmorrisey.com/api/calls', window.location.origin); if (cursor) url.searchParams.set('cursor', cursor); const res = await fetch(url.toString()); @@ -163,7 +163,7 @@ submitBtn.innerHTML = ' Uploading...'; try { - const res = await fetch('/api/calls', { + const res = await fetch('https://alx911-api.danielmorrisey.com/api/calls', { method: 'POST', body: formData });