s/message/error/
This commit is contained in:
parent
689842b9ff
commit
7e547c6833
1 changed files with 1 additions and 1 deletions
|
@ -350,7 +350,7 @@ func PushModelHandler(c *gin.Context) {
|
||||||
func CreateModelHandler(c *gin.Context) {
|
func CreateModelHandler(c *gin.Context) {
|
||||||
var req api.CreateRequest
|
var req api.CreateRequest
|
||||||
if err := c.ShouldBindJSON(&req); err != nil {
|
if err := c.ShouldBindJSON(&req); err != nil {
|
||||||
c.JSON(http.StatusBadRequest, gin.H{"message": err.Error()})
|
c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue