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 => #{
type => string,
enum => [<<"get">>, <<"post">>, <<"put">>],
enum => [<<"get">>, <<"post">>],
example => <<"get">>
},
headers => #{type => object},

View File

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