app get should not retrieve its routes

This commit is contained in:
Pedro Nasser
2016-07-30 18:16:29 -03:00
parent 0b3d5cec5e
commit 9a69156631

View File

@@ -27,18 +27,5 @@ func handleAppGet(c *gin.Context) {
return return
} }
filter := &models.RouteFilter{
AppName: appName,
}
routes, err := store.GetRoutes(filter)
if err != nil {
log.WithError(err).Error(models.ErrRoutesGet)
c.JSON(http.StatusInternalServerError, simpleError(models.ErrRoutesGet))
return
}
app.Routes = routes
c.JSON(http.StatusOK, &models.AppWrapper{app}) c.JSON(http.StatusOK, &models.AppWrapper{app})
} }