Software /
code /
prosody
Changeset
11362:52d93fba2ee1
mod_admin_shell: List modules providing each HTTP endpoint
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 03 Feb 2021 23:31:34 +0100 |
parents | 11361:dab1a6e46087 |
children | 11363:8cbe951b40e3 |
files | plugins/mod_admin_shell.lua |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_admin_shell.lua Wed Feb 03 23:28:02 2021 +0100 +++ b/plugins/mod_admin_shell.lua Wed Feb 03 23:31:34 2021 +0100 @@ -1236,8 +1236,11 @@ 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