Some changes

This commit is contained in:
nemunaire 2022-10-22 03:12:59 +02:00
commit 259b78ebd3
4 changed files with 193 additions and 9 deletions

View file

@ -121,7 +121,7 @@ func declareLinesRoutes(router *gin.RouterGroup) {
}
pgline := PGLine{
Code: fmt.Sprintf("IDFM:%s", line.Fields.IdLine),
Code: fmt.Sprintf("STIF:Line::%s:", line.Fields.IdLine),
Name: name,
Directions: "",
Id: line.Fields.IdLine,
@ -132,7 +132,7 @@ func declareLinesRoutes(router *gin.RouterGroup) {
}
c.JSON(http.StatusOK, APIResult(c, map[string][]PGLine{
t: lines,
string(c.Param("type")): lines,
}))
})
}