php api endpoint back to 127.0.0.1
This commit is contained in:
1 parent
6f0fd8229c
commit
48e2e7061e
4 files changed
+4
-4
No files matched your search
@@ -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);
|
||||
|
||||
@@ -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') {
|
||||
|
||||
@@ -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);
|
||||
|
||||
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user