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
commit8aebef35aeb88e3144b88153e7e134353e6e7777 (patch)
treed48ce9d0f9c50440ef6842b5ce55cf894d23ece8 /plugins
parent6b1da26463fb5940c4139ade04ba5c770cf7a9cc (diff)
downloadprosody-8aebef35aeb88e3144b88153e7e134353e6e7777.tar.gz
prosody-8aebef35aeb88e3144b88153e7e134353e6e7777.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