testing list providers
This commit is contained in:
1 parent
5ec16d4cbc
commit
2efd469f1e
7 files changed
+38
-12
No files matched your search
@@ -5,7 +5,7 @@
|
||||
// When the form is submitted, it POSTs JSON to /providers.
|
||||
|
||||
// file settings
|
||||
require_once __DIR__ . '/config.php';
|
||||
require_once __DIR__ . '/../fitness-config.php';
|
||||
|
||||
// Helper to call the API -------------------------------------------
|
||||
function callApi(string $method, string $path, $body = null)
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
<?php
|
||||
// config.php
|
||||
// Base URL for the API
|
||||
define('BASE_API_URL', 'http://172.25.1.105:5000');
|
||||
#define('BASE_API_URL', 'http://127.0.0.1:5000');
|
||||
|
||||
?>
|
||||
@@ -3,7 +3,7 @@
|
||||
// Edit an existing fitness provider.
|
||||
// Handles rate options similar to add_provider.php.
|
||||
|
||||
require_once __DIR__ . '/config.php';
|
||||
require_once __DIR__ . '/../fitness-config.php';
|
||||
|
||||
$provider_id = (int)($_GET['id'] ?? 0);
|
||||
if ($provider_id <= 0) {
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
// The API endpoint for providers is /providers.
|
||||
|
||||
// file settings
|
||||
require_once __DIR__ . '/config.php';
|
||||
require_once __DIR__ . '/../fitness-config.php';
|
||||
// --- Helper to call the API -------------------------------------------
|
||||
function callApi(string $method, string $path, $body = null)
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
// The design follows the pattern used in list_providers.php.
|
||||
|
||||
// file settings
|
||||
require_once __DIR__ . '/config.php';
|
||||
require_once __DIR__ . '/../fitness-config.php';
|
||||
|
||||
// --- Helper to call the Flask API -------------------------------------------
|
||||
function callApi(string $method, string $path, $body = null)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require_once __DIR__.'/config.php';
|
||||
require_once __DIR__ . '/../fitness-config.php';
|
||||
|
||||
function uploadPhotos($provider_id, $files) {
|
||||
$url = BASE_API_URL . "/api/providers/$provider_id/photos";
|
||||
|
||||
Reference in new issue
Block a user