mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
standard route response
This commit is contained in:
@@ -37,5 +37,5 @@ func handleRouteList(c *gin.Context) {
|
||||
|
||||
log.WithFields(logrus.Fields{"routes": routes}).Debug("Got routes")
|
||||
|
||||
c.JSON(http.StatusOK, &models.RoutesWrapper{Routes: routes})
|
||||
c.JSON(http.StatusOK, routesResponse{"Sucessfully listed routes", routes})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user