mirror of
https://github.com/bjc/prosody.git
synced 2025-04-06 22:57:38 +03:00
mod_admin_shell: List modules providing each HTTP endpoint
This commit is contained in:
parent
a64ae4e8d5
commit
d8d5ad3bea
1 changed files with 3 additions and 0 deletions
|
@ -1236,8 +1236,11 @@ function def_env.http:list(hosts)
|
||||||
print("HTTP endpoints on "..host..(http_host and (" (using "..http_host.."):") or ":"));
|
print("HTTP endpoints on "..host..(http_host and (" (using "..http_host.."):") or ":"));
|
||||||
end
|
end
|
||||||
for _, provider in ipairs(http_apps) do
|
for _, provider in ipairs(http_apps) do
|
||||||
|
local mod = provider._provided_by;
|
||||||
local url = module:context(host):http_url(provider.name, provider.default_path);
|
local url = module:context(host):http_url(provider.name, provider.default_path);
|
||||||
print("", url);
|
print("", url);
|
||||||
|
mod = mod and "mod_"..mod or ""
|
||||||
|
print("", mod, url);
|
||||||
end
|
end
|
||||||
print("");
|
print("");
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue