php config file
This commit is contained in:
1 parent
48e2e7061e
commit
a08a4c0314
5 files changed
+22
-4
No files matched your search
@@ -4,10 +4,13 @@
|
||||
// It expects the Flask API to be reachable at http://127.0.0.1:5000
|
||||
// The API endpoint for providers is /providers.
|
||||
|
||||
// file settings
|
||||
require_once __DIR__ . '/config.php';
|
||||
|
||||
// --- Helper to call the API -------------------------------------------
|
||||
function callApi(string $method, string $path, $body = null)
|
||||
{
|
||||
$url = 'http://127.0.0.1:5000' . $path;
|
||||
$url = BASE_API_URL . $path;
|
||||
$ch = curl_init($url);
|
||||
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
|
||||
Reference in new issue
Block a user