Update route to follow migration
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
cacaef94e2
commit
af430d4c39
@ -44,7 +44,7 @@ func declareTrafficRoutes(router *gin.RouterGroup) {
|
||||
router.GET("/traffic/:type/:code", func(c *gin.Context) {
|
||||
code := searchLine(convertLineType(string(c.Param("type"))), string(c.Param("code")))
|
||||
|
||||
rurl, err := url.JoinPath(IDFM2_BASEURL, "navitia/line_reports/coverage/fr-idf/lines", "line:IDFM:"+code, "line_reports")
|
||||
rurl, err := url.JoinPath(IDFM2_BASEURL, "v2/navitia/lines", "line:IDFM:"+code, "line_reports")
|
||||
if err != nil {
|
||||
c.AbortWithStatusJSON(http.StatusInternalServerError, gin.H{"errmsg": err.Error()})
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user