From 60f8d79d9e8ccedcd95610a88dd7dc8ec5521aca Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Mon, 3 Nov 2025 10:51:47 +0100 Subject: Simplify estimates endpoint to return only arrival data (#57) Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: arielcostas <94913521+arielcostas@users.noreply.github.com> --- src/Costasdev.Busurbano.Backend/VigoController.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/Costasdev.Busurbano.Backend/VigoController.cs') diff --git a/src/Costasdev.Busurbano.Backend/VigoController.cs b/src/Costasdev.Busurbano.Backend/VigoController.cs index 41a8765..be0e7c6 100644 --- a/src/Costasdev.Busurbano.Backend/VigoController.cs +++ b/src/Costasdev.Busurbano.Backend/VigoController.cs @@ -37,8 +37,9 @@ public class VigoController : ControllerBase try { - var estimates = await _api.GetStopEstimates(requestedStopId); - return new OkObjectResult(estimates); + var response = await _api.GetStopEstimates(requestedStopId); + // Return only the estimates array, not the stop metadata + return new OkObjectResult(response.Estimates); } catch (InvalidOperationException) { -- cgit v1.3