diff --git a/guestbook.js b/guestbook.js index 22363fbc..6d6acf9c 100644 --- a/guestbook.js +++ b/guestbook.js @@ -1,13 +1,13 @@ /** * Web application */ -const apiUrl = ''; +const apiUrl = 'https://us-south.functions.appdomain.cloud/api/v1/web/44d04519-4473-4f73-895d-1ff42144f97f/guestbook'; const guestbook = { // retrieve the existing guestbook entries get() { return $.ajax({ type: 'GET', - url: `${apiUrl}/entries`, + url: `${apiUrl}/read-guestbook-entries-sequence.json`, dataType: 'json' }); }, @@ -16,7 +16,7 @@ const guestbook = { console.log('Sending', name, email, comment) return $.ajax({ type: 'PUT', - url: `${apiUrl}/entries`, + url: `${apiUrl}/save-guestbook-entry-sequence.json`, contentType: 'application/json; charset=utf-8', data: JSON.stringify({ name,