testing list providers

This commit is contained in:
matt committed 2026-10-28 22:15:39 -07:00
1 parent 5ec16d4cbc
commit 2efd469f1e
7 files changed
+38 -12

No files matched your search

+1 -1
View File
@@ -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)
-7
View File
@@ -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');
?>
+1 -1
View File
@@ -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) {
+1 -1
View File
@@ -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)
{
+1 -1
View File
@@ -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 -1
View File
@@ -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";