-
This commit is contained in:
@@ -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])) {
|
||||
|
||||
Reference in New Issue
Block a user