From dd9b0d78a3de8c4d2047631df8f7673cfde6d2c3 Mon Sep 17 00:00:00 2001 From: bensonpaul Date: Wed, 5 Jun 2024 10:41:24 +0530 Subject: [PATCH] Modified SuiteCRM API end point --- static/js/main-new.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/static/js/main-new.js b/static/js/main-new.js index dff3fa9..26e81e7 100644 --- a/static/js/main-new.js +++ b/static/js/main-new.js @@ -166,7 +166,7 @@ $.ajax(settings).done(function (response) { var settings = { "async": true, "crossDomain": true, - "url": "https://devl-crm.unblock.health/Api/access_token", + "url": "https://devl-crm.unblock.health/legacy/Api/access_token", "method": "POST", "headers": { "Accept": "application/vnd.api+json" @@ -182,7 +182,7 @@ $.ajax(settings).done(function (response) { var obj = $.parseJSON(response); var access_token = obj.access_token; var settings = { - "url": "https://devl-crm.unblock.health/Api/V8/module", + "url": "https://devl-crm.unblock.health/legacy/Api/V8/module", "method": "POST", "headers": { "Accept": "application/vnd.api+json", @@ -199,7 +199,7 @@ $.ajax(settings).done(function (response) { var settings = { "async": true, "crossDomain": true, - "url": "https://devl-crm.unblock.health/Api/V8/module/Accounts/c548fc60-389f-8f5b-5ecb-64cce0924678/relationships", + "url": "https://devl-crm.unblock.health/legacy/Api/V8/module/Accounts/c548fc60-389f-8f5b-5ecb-64cce0924678/relationships", "method": "POST", "headers": { "Accept": "application/vnd.api+json", @@ -304,7 +304,7 @@ $('#contact-submit-live').prop('disabled', 'disabled'); var obj = $.parseJSON(response); var access_token = obj.access_token; var settings = { - "url": "https://devl-crm.unblock.health/Api/V8/module", + "url": "https://devl-crm.unblock.health/legacy/Api/V8/module", "method": "POST", "headers": { "Accept": "application/vnd.api+json", @@ -321,7 +321,7 @@ $('#contact-submit-live').prop('disabled', 'disabled'); var settings = { "async": true, "crossDomain": true, - "url": "https://devl-crm.unblock.health/Api/V8/module/Accounts/c548fc60-389f-8f5b-5ecb-64cce0924678/relationships", + "url": "https://devl-crm.unblock.health/legacy/Api/V8/module/Accounts/c548fc60-389f-8f5b-5ecb-64cce0924678/relationships", "method": "POST", "headers": { "Accept": "application/vnd.api+json",