# HG changeset patch # User Kim Alvefur # Date 1612391494 -3600 # Node ID 52d93fba2ee1bc3e8589ec4ebdf4f25dd96f5fe8 # Parent dab1a6e46087758790efdce82734920d6a69179d mod_admin_shell: List modules providing each HTTP endpoint diff -r dab1a6e46087 -r 52d93fba2ee1 plugins/mod_admin_shell.lua --- 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