turtled 8 лет назад
Родитель
Сommit
8091c07d3c
3 измененных файлов с 3 добавлено и 3 удалено
  1. 1 1
      src/emqttd_cli_config.erl
  2. 1 1
      src/emqttd_http.erl
  3. 1 1
      src/emqttd_rest_api.erl

+ 1 - 1
src/emqttd_cli_config.erl

@@ -367,4 +367,4 @@ any_to_string(A) when is_atom(A) ->
 any_to_string(B) when is_binary(B) ->
     binary_to_list(B);
 any_to_string(L)  when is_list(L) ->
-    L.
+    L.

+ 1 - 1
src/emqttd_http.erl

@@ -214,7 +214,7 @@ api_list() ->
               <<"api/v2/nodes/{node_name}/clients">>,
               <<"api/v2/nodes/{node_name}/clients/{clientid}">>,
               <<"api/v2/clients/{clientid}">>,
-              <<"api/v2/clean_acl_cache/{clientid}">>,
+              <<"api/v2/clients/{clientid}/clean_acl_cache">>,
               <<"api/v2/nodes/{node_name}/sessions">>,
               <<"api/v2/nodes/{node_name}/sessions/{clientid}">>,
               <<"api/v2/sessions/{clientid}">>,

+ 1 - 1
src/emqttd_rest_api.erl

@@ -25,7 +25,7 @@
 -http_api({"^nodes/(.+?)/clients/(.+?)/?$", 'GET',client_list, []}).
 -http_api({"^clients/(.+?)/?$", 'GET', client, []}).
 -http_api({"^clients/(.+?)/?$", 'DELETE', kick_client, []}).
--http_api({"^clean_acl_cache/(.+?)/?$", 'DELETE', clean_acl_cache, [{<<"topic">>, binary}]}).
+-http_api({"^clients/(.+?)/clean_acl_cache?$", 'DELETE', clean_acl_cache, [{<<"topic">>, binary}]}).
 
 -http_api({"^routes?$", 'GET', route_list, []}).
 -http_api({"^routes/(.+?)/?$", 'GET', route, []}).