Wendell/pkg:feature/allow-delete-method
master
@@ -55,7 +55,7 @@ func Success(ctx *gin.Context, data interface{}) {
}
switch ctx.Request.Method {
- case http.MethodGet, http.MethodHead, http.MethodOptions:
+ case http.MethodGet, http.MethodHead, http.MethodOptions, http.MethodDelete:
ctx.JSON(http.StatusOK, data)
case http.MethodPost, http.MethodPut, http.MethodPatch:
ctx.JSON(http.StatusCreated, data)