getTeams(), JSON_UNESCAPED_UNICODE); exit; } if ($method === 'GET' && preg_match('#^/api/teams/(\d+)/sprints$#', $path, $matches)) { echo json_encode($api->getSprintsByTeamId((int) $matches[1]), JSON_UNESCAPED_UNICODE); exit; } http_response_code(404); echo json_encode(['error' => 'Not found'], JSON_UNESCAPED_UNICODE); } catch (Throwable $e) { http_response_code(500); echo json_encode(['error' => $e->getMessage()], JSON_UNESCAPED_UNICODE); }