aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-02-03 23:31:34 +0100
committerKim Alvefur <zash@zash.se>2021-02-03 23:31:34 +0100
commitd8d5ad3beafb9b9a85ca38e2f55a90f10747881f (patch)
treed48ce9d0f9c50440ef6842b5ce55cf894d23ece8 /plugins
parenta64ae4e8d58b739951a741cd5ac1a5b194604667 (diff)
downloadprosody-d8d5ad3beafb9b9a85ca38e2f55a90f10747881f.tar.gz
prosody-d8d5ad3beafb9b9a85ca38e2f55a90f10747881f.zip
mod_admin_shell: List modules providing each HTTP endpoint
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_admin_shell.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua
index 1c026b8b..deb2e263 100644
--- a/plugins/mod_admin_shell.lua
+++ b/plugins/mod_admin_shell.lua
@@ -1236,8 +1236,11 @@ function def_env.http:list(hosts)
print("HTTP endpoints on "..host..(http_host and (" (using "..http_host.."):") or ":"));
end
for _, provider in ipairs(http_apps) do
+ local mod = provider._provided_by;
local url = module:context(host):http_url(provider.name, provider.default_path);
print("", url);
+ mod = mod and "mod_"..mod or ""
+ print("", mod, url);
end
print("");
end