mod_admin_shell: List modules providing each HTTP endpoint
authorKim Alvefur <zash@zash.se>
Wed, 03 Feb 2021 23:31:34 +0100
changeset 11366 52d93fba2ee1
parent 11365 dab1a6e46087
child 11367 8cbe951b40e3
mod_admin_shell: List modules providing each HTTP endpoint
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