php config file
This commit is contained in:
1 parent
48e2e7061e
commit
a08a4c0314
5 files changed
+22
-4
No files matched your search
+4
-1
@@ -4,11 +4,14 @@
|
||||
// It supports updating existing settings via PUT and creating a single new setting via POST.
|
||||
// The design follows the pattern used in list_providers.php.
|
||||
|
||||
// file settings
|
||||
require_once __DIR__ . '/config.php';
|
||||
|
||||
// --- Helper to call the Flask API -------------------------------------------
|
||||
function callApi(string $method, string $path, $body = null)
|
||||
{
|
||||
// API base URL – update if your API is hosted elsewhere
|
||||
$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