Updated route_name in json to app_name.

This commit is contained in:
Travis Reeder
2016-10-12 09:47:41 -07:00
parent 62fae89e33
commit 75383d060f
2 changed files with 2 additions and 2 deletions

View File

@@ -52,7 +52,7 @@ type Task struct {
Read Only: true
*/
AppName string `json:"route_name,omitempty"`
AppName string `json:"app_name,omitempty"`
Path string `json:"path"`

View File

@@ -73,7 +73,7 @@ func handleRequest(c *gin.Context, enqueue models.Enqueue) {
}
// if still no appName, we gotta exit
if appName == "" {
log.WithError(err).Error(models.ErrAppsNotFound)
log.WithError(err).Error("Invalid app, blank")
c.JSON(http.StatusBadRequest, simpleError(models.ErrAppsNotFound))
return
}