diff options
author | Kim Alvefur <zash@zash.se> | 2021-02-03 23:31:34 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-02-03 23:31:34 +0100 |
commit | d8d5ad3beafb9b9a85ca38e2f55a90f10747881f (patch) | |
tree | d48ce9d0f9c50440ef6842b5ce55cf894d23ece8 | |
parent | a64ae4e8d58b739951a741cd5ac1a5b194604667 (diff) | |
download | prosody-d8d5ad3beafb9b9a85ca38e2f55a90f10747881f.tar.gz prosody-d8d5ad3beafb9b9a85ca38e2f55a90f10747881f.zip |
mod_admin_shell: List modules providing each HTTP endpoint
-rw-r--r-- | plugins/mod_admin_shell.lua | 3 |
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 |