getProjects(); echo json_encode($projects); } catch (Exception $e) { http_response_code(500); echo json_encode(['error' => $e->getMessage()]); }