1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-01-24 03:46:37 +02:00

fixed swagger method

This commit is contained in:
Sam 2019-11-07 11:32:09 +08:00 committed by GitHub
parent 7e370e4384
commit 5f8bb6b88e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -166,7 +166,7 @@ func (t *swaggerGen) getOperationByHTTPMethod(httpMethod string, pathItem *swagg
case http.MethodPut:
pathItem.Put = op
case http.MethodDelete:
pathItem.Put = op
pathItem.Delete = op
case http.MethodPatch:
pathItem.Patch = op
default: