(c *gin.Context, code int, err error)
| 327 | } |
| 328 | |
| 329 | func AbortWithJSONError(c *gin.Context, code int, err error) { |
| 330 | c.Writer.Header().Set("Content-Type", "application/json; charset=utf-8") |
| 331 | _ = c.AbortWithError(code, err) |
| 332 | } |
no test coverage detected