We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e4f8f3 commit e0f8670Copy full SHA for e0f8670
src/rest/controllers/vhosts.erl
@@ -7,6 +7,7 @@
7
% list_vhosts
8
9
get([]) -> {?MODULE, get_all_vhosts()};
10
+get(["root"]) -> ?MODULE:get(["/"]);
11
get([Id]) ->
12
Vhosts = lists:map(fun(U) -> erlang:binary_to_list(U) end, get_all_vhosts()),
13
case lists:member(Id, Vhosts) of
@@ -40,4 +41,4 @@ get_all_vhosts() ->
40
41
case rabint:call({rabbit_access_control, list_vhosts, []}) of
42
{_Error, _} -> erlang:list_to_binary([<<"no vhosts">>]);
43
Bin -> Bin
- end.
44
+ end.
0 commit comments