Some changes
This commit is contained in:
parent
0a854f708a
commit
259b78ebd3
4 changed files with 193 additions and 9 deletions
|
|
@ -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,
|
||||
}))
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue