Software /
code /
prosody
Diff
plugins/mod_admin_shell.lua @ 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 |
parent | 11361:dab1a6e46087 |
child | 11363:8cbe951b40e3 |
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