From 103497de0ba13842fe3f976e5189d7d4bc67eacd Mon Sep 17 00:00:00 2001 From: Gustavo Zamboni Date: Mon, 6 Mar 2023 16:41:37 -0300 Subject: [PATCH] Update guestbook.js --- guestbook.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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,