This commit is contained in:
Ty Clifford
2026-06-30 12:39:17 -04:00
parent 0fe5a92f90
commit 17ebaf21a3
18 changed files with 1789 additions and 143 deletions
+12
View File
@@ -12,6 +12,11 @@ try {
exit;
}
if ($method === 'GET' && $action === 'library_search') {
json_response(library_search_payload($_GET));
exit;
}
if ($method !== 'POST') {
json_response(['error' => 'Unsupported method.'], 405);
exit;
@@ -33,6 +38,13 @@ try {
'create_nutrition_log' => 'create_nutrition_log',
'create_supplement_log' => 'create_supplement_log',
'create_body_metric' => 'create_body_metric',
'create_medication_log' => 'create_medication_log',
'create_vital_log' => 'create_vital_log',
'create_lab_result' => 'create_lab_result',
'create_symptom_log' => 'create_symptom_log',
'create_allergy_record' => 'create_allergy_record',
'create_appointment' => 'create_appointment',
'create_immunization_record' => 'create_immunization_record',
];
if (!isset($routes[$action])) {