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 | 8aebef35aeb88e3144b88153e7e134353e6e7777 (patch) | |
tree | d48ce9d0f9c50440ef6842b5ce55cf894d23ece8 /plugins | |
parent | 6b1da26463fb5940c4139ade04ba5c770cf7a9cc (diff) | |
download | prosody-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.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 |