standard route response

This commit is contained in:
Pedro Nasser
2016-08-30 13:42:55 -03:00
parent 662216f7f1
commit 7b230232b8
9 changed files with 16 additions and 16 deletions

View File

@@ -33,5 +33,5 @@ func handleRouteGet(c *gin.Context) {
log.WithFields(logrus.Fields{"route": route}).Debug("Got route")
c.JSON(http.StatusOK, &models.RouteWrapper{route})
c.JSON(http.StatusOK, routeResponse{"Successfully loaded route", route})
}