Cli (#1272)
* Fix issue 1260 (#1262) * Fix #1238 (#1266) * docs: update readme to use goctl@cli (#1255) * chore: update goctl version * style: coding style * docs: update readme to use goctl@cli * fix #1238 * format code * format code Co-authored-by: Kevin Wan <wanjunfeng@gmail.com> Co-authored-by: anqiansong <anqiansong@bytedance.com> Co-authored-by: anqiansong <anqiansong@gmail.com> Co-authored-by: anqiansong <anqiansong@bytedance.com>
This commit is contained in:
@@ -39,12 +39,15 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
||||
)
|
||||
|
||||
var mapping = map[string]string{
|
||||
"delete": "http.MethodDelete",
|
||||
"get": "http.MethodGet",
|
||||
"head": "http.MethodHead",
|
||||
"post": "http.MethodPost",
|
||||
"put": "http.MethodPut",
|
||||
"patch": "http.MethodPatch",
|
||||
"delete": "http.MethodDelete",
|
||||
"get": "http.MethodGet",
|
||||
"head": "http.MethodHead",
|
||||
"post": "http.MethodPost",
|
||||
"put": "http.MethodPut",
|
||||
"patch": "http.MethodPatch",
|
||||
"connect": "http.MethodConnect",
|
||||
"options": "http.MethodOptions",
|
||||
"trace": "http.MethodTrace",
|
||||
}
|
||||
|
||||
type (
|
||||
|
||||
Reference in New Issue
Block a user