Use gin-gonic instead of httprouter
This commit is contained in:
parent
fdceb2547c
commit
6c1ca2a23b
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ func declareAPIAuthResponsesRoutes(router *gin.RouterGroup) {
|
||||||
}
|
}
|
||||||
|
|
||||||
var responses []Response
|
var responses []Response
|
||||||
if err := c.ShouldBindJSON(responses); err != nil {
|
if err := c.ShouldBindJSON(&responses); err != nil {
|
||||||
c.AbortWithStatusJSON(http.StatusBadRequest, gin.H{"errmsg": err.Error()})
|
c.AbortWithStatusJSON(http.StatusBadRequest, gin.H{"errmsg": err.Error()})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue