Michael Yang 1 год назад
Родитель
Сommit
7e547c6833
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      server/routes.go

+ 1 - 1
server/routes.go

@@ -350,7 +350,7 @@ func PushModelHandler(c *gin.Context) {
 func CreateModelHandler(c *gin.Context) {
 	var req api.CreateRequest
 	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
 	}