Skip to content

Commit

Permalink
Update API base URL in scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ykkhmrdn committed Dec 26, 2023
1 parent 963c3c1 commit ddf82e5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion script/about.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion script/detail-products.js
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion script/index.js
Original file line number Diff line number Diff line change
@@ -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) => {
Expand Down

0 comments on commit ddf82e5

Please sign in to comment.