aboutsummaryrefslogtreecommitdiff
path: root/src/Enmarcha.Backend/Controllers/TileController.cs
diff options
context:
space:
mode:
authorAriel Costas Guerrero <ariel@costas.dev>2026-02-05 13:26:18 +0100
committerAriel Costas Guerrero <ariel@costas.dev>2026-02-05 13:26:18 +0100
commitfa3017574b830ee18cadc6bfe1cd9a465f48e555 (patch)
treedd318fd0b6901593458432086e957fa659f9443a /src/Enmarcha.Backend/Controllers/TileController.cs
parent7a680e6b1bd234d261909f77b06e58033a3824cb (diff)
Better unknown feed handling, handle UVIGO shuttle
Diffstat (limited to 'src/Enmarcha.Backend/Controllers/TileController.cs')
-rw-r--r--src/Enmarcha.Backend/Controllers/TileController.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Enmarcha.Backend/Controllers/TileController.cs b/src/Enmarcha.Backend/Controllers/TileController.cs
index 3fdedfb..44a2473 100644
--- a/src/Enmarcha.Backend/Controllers/TileController.cs
+++ b/src/Enmarcha.Backend/Controllers/TileController.cs
@@ -191,10 +191,10 @@ public class TileController : ControllerBase
{
return feedId switch
{
- "vitrasa" or "tussa" or "tranvias" => "bus",
+ "vitrasa" or "tussa" or "tranvias" or "shuttle" => "bus",
"xunta" => "coach",
"renfe" or "feve" => "train",
- _ => throw new ArgumentException("Feed ID not a known type", feedId)
+ _ => "unknown"
};
}