Allow long code also
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
nemunaire 2024-07-27 11:29:26 +02:00
commit bfcd15886e
2 changed files with 2 additions and 2 deletions

View file

@ -138,7 +138,7 @@ func getRealTime(code string, stations []string) ([]IDFMMonitoredStopVisit, erro
func declareSchedulesRoutes(router *gin.RouterGroup) {
router.GET("/schedules/:type/:code/:station/:way", func(c *gin.Context) {
t := convertLineType(string(c.Param("type")))
code := searchLine(t, string(c.Param("code")))
code := searchLine(t, convertLineCode(string(c.Param("code"))))
station := string(c.Param("station"))
way := string(c.Param("way"))