fix(emqx_mgmt_http): add slow subs api into emqx_mgmt_http api list
This commit is contained in:
parent
e12065f361
commit
62ced62aac
|
@ -89,7 +89,8 @@ listener_name(Proto) ->
|
||||||
|
|
||||||
http_handlers() ->
|
http_handlers() ->
|
||||||
Plugins = lists:map(fun(Plugin) -> Plugin#plugin.name end, emqx_plugins:list()),
|
Plugins = lists:map(fun(Plugin) -> Plugin#plugin.name end, emqx_plugins:list()),
|
||||||
[{"/api/v4", minirest:handler(#{apps => Plugins ++ [emqx_modules] -- ?EXCEPT_PLUGIN,
|
[{"/api/v4", minirest:handler(#{apps => Plugins ++
|
||||||
|
[emqx_plugin_libs, emqx_modules] -- ?EXCEPT_PLUGIN,
|
||||||
except => ?EXCEPT,
|
except => ?EXCEPT,
|
||||||
filter => fun ?MODULE:filter/1}),
|
filter => fun ?MODULE:filter/1}),
|
||||||
[{authorization, fun ?MODULE:authorize_appid/1}]}].
|
[{authorization, fun ?MODULE:authorize_appid/1}]}].
|
||||||
|
@ -128,6 +129,7 @@ filter(_) ->
|
||||||
true.
|
true.
|
||||||
-else.
|
-else.
|
||||||
filter(#{app := emqx_modules}) -> true;
|
filter(#{app := emqx_modules}) -> true;
|
||||||
|
filter(#{app := emqx_plugin_libs}) -> true;
|
||||||
filter(#{app := App}) ->
|
filter(#{app := App}) ->
|
||||||
case emqx_plugins:find_plugin(App) of
|
case emqx_plugins:find_plugin(App) of
|
||||||
false -> false;
|
false -> false;
|
||||||
|
|
Loading…
Reference in New Issue