mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Updated route_name in json to app_name.
This commit is contained in:
@@ -52,7 +52,7 @@ type Task struct {
|
|||||||
|
|
||||||
Read Only: true
|
Read Only: true
|
||||||
*/
|
*/
|
||||||
AppName string `json:"route_name,omitempty"`
|
AppName string `json:"app_name,omitempty"`
|
||||||
|
|
||||||
Path string `json:"path"`
|
Path string `json:"path"`
|
||||||
|
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ func handleRequest(c *gin.Context, enqueue models.Enqueue) {
|
|||||||
}
|
}
|
||||||
// if still no appName, we gotta exit
|
// if still no appName, we gotta exit
|
||||||
if appName == "" {
|
if appName == "" {
|
||||||
log.WithError(err).Error(models.ErrAppsNotFound)
|
log.WithError(err).Error("Invalid app, blank")
|
||||||
c.JSON(http.StatusBadRequest, simpleError(models.ErrAppsNotFound))
|
c.JSON(http.StatusBadRequest, simpleError(models.ErrAppsNotFound))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user