php config file

This commit is contained in:
matt committed 2026-10-17 05:55:48 -07:00
1 parent 48e2e7061e
commit a08a4c0314
5 files changed
+22 -4

No files matched your search

+4 -1
View File
@@ -4,10 +4,13 @@
// It uses the same Flask API as list_providers.php (http://172.25.1.105:5000).
// When the form is submitted, it POSTs JSON to /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);