From d8d5ad3beafb9b9a85ca38e2f55a90f10747881f Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 3 Feb 2021 23:31:34 +0100 Subject: mod_admin_shell: List modules providing each HTTP endpoint --- plugins/mod_admin_shell.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins') 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 -- cgit v1.2.3