From 9a6ef8a0102d7c9c4710ceeaa15c824e20d59946 Mon Sep 17 00:00:00 2001 From: Starko25 <123805751+Starko25@users.noreply.github.com> Date: Sat, 4 Mar 2023 22:47:02 +0530 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..650306e8 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/ca1c0d47-564a-4e5b-85d2-e2504b9f17aa/default'; const guestbook = { // retrieve the existing guestbook entries get() { return $.ajax({ type: 'GET', - url: `${apiUrl}/entries`, + url: `${apiUrl}/read-guestbook-entry-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,