diff --git a/web/add_provider.php b/web/add_provider.php index 519c728..739c088 100644 --- a/web/add_provider.php +++ b/web/add_provider.php @@ -7,7 +7,7 @@ // Helper to call the API ------------------------------------------- function callApi(string $method, string $path, $body = null) { - $url = 'http://172.25.1.105:5000' . $path; + $url = 'http://127.0.0.1:5000' . $path; $ch = curl_init($url); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); diff --git a/web/edit_provider.php b/web/edit_provider.php index 047187d..b7ee0eb 100644 --- a/web/edit_provider.php +++ b/web/edit_provider.php @@ -13,7 +13,7 @@ if ($provider_id <= 0) { } // API base URL -$api_base = 'http://172.25.1.105:5000'; +$api_base = 'http://127.0.0.1:5000'; // Handle form submission if ($_SERVER['REQUEST_METHOD'] === 'POST') { diff --git a/web/list_providers.php b/web/list_providers.php index a157c3a..14c594d 100644 --- a/web/list_providers.php +++ b/web/list_providers.php @@ -7,7 +7,7 @@ // --- Helper to call the API ------------------------------------------- function callApi(string $method, string $path, $body = null) { - $url = 'http://172.25.1.105:5000' . $path; + $url = 'http://127.0.0.1:5000' . $path; $ch = curl_init($url); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); diff --git a/web/settings.php b/web/settings.php index 9bca49b..70e6eac 100644 --- a/web/settings.php +++ b/web/settings.php @@ -8,7 +8,7 @@ function callApi(string $method, string $path, $body = null) { // API base URL – update if your API is hosted elsewhere - $url = 'http://172.25.1.105:5000' . $path; + $url = 'http://127.0.0.1:5000' . $path; $ch = curl_init($url); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);