chore(emqx_authz): delete put for http type

This commit is contained in:
zhanghongtong 2021-09-09 18:18:56 +08:00 committed by Rory Z
parent ef0f94025a
commit 6095253126
2 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@ definitions() ->
}, },
method => #{ method => #{
type => string, type => string,
enum => [<<"get">>, <<"post">>, <<"put">>], enum => [<<"get">>, <<"post">>],
example => <<"get">> example => <<"get">>
}, },
headers => #{type => object}, headers => #{type => object},

View File

@ -84,7 +84,7 @@ fields(http_post) ->
, {enable, #{type => boolean(), , {enable, #{type => boolean(),
default => true}} default => true}}
, {url, #{type => url()}} , {url, #{type => url()}}
, {method, #{type => hoconsc:enum([post, put]), , {method, #{type => post,
default => get}} default => get}}
, {headers, #{type => map(), , {headers, #{type => map(),
default => #{ <<"accept">> => <<"application/json">> default => #{ <<"accept">> => <<"application/json">>