From ddf82e528947a12aa2340e12aab9ca63315bb18b Mon Sep 17 00:00:00 2001 From: ykkhmrdn Date: Tue, 26 Dec 2023 22:36:40 +0700 Subject: [PATCH] Update API base URL in scripts --- script/about.js | 2 +- script/detail-products.js | 2 +- script/index.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/script/about.js b/script/about.js index 2161556..289604d 100644 --- a/script/about.js +++ b/script/about.js @@ -1,4 +1,4 @@ -const API_BASE_URL = "https://be-balikpapan-8-production.up.railway.app"; +const API_BASE_URL = "mysql://root:ykkhmrdn152833@localhost:3306/robincode"; // function to fill content member diff --git a/script/detail-products.js b/script/detail-products.js index 3479744..94940d0 100644 --- a/script/detail-products.js +++ b/script/detail-products.js @@ -1,4 +1,4 @@ -const API_BASE_URL = "https://be-balikpapan-8-production.up.railway.app"; +const API_BASE_URL = "mysql://root:ykkhmrdn152833@localhost:3306/robincode"; // Fungsi untuk memuat data produk dari API menggunakan fetch function loadProductData(callback) { diff --git a/script/index.js b/script/index.js index 5ea0e70..8c882d0 100644 --- a/script/index.js +++ b/script/index.js @@ -1,4 +1,4 @@ -const API_BASE_URL = "https://be-balikpapan-8-production.up.railway.app"; +const API_BASE_URL = "mysql://root:ykkhmrdn152833@localhost:3306/robincode"; fetch(`${API_BASE_URL}/index`) // Fetch data from API endpoint .then((response) => {