Comparison

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
comparison
equal deleted inserted replaced
11361:dab1a6e46087 11362:52d93fba2ee1
1234 print("Global HTTP endpoints available on all hosts:"); 1234 print("Global HTTP endpoints available on all hosts:");
1235 else 1235 else
1236 print("HTTP endpoints on "..host..(http_host and (" (using "..http_host.."):") or ":")); 1236 print("HTTP endpoints on "..host..(http_host and (" (using "..http_host.."):") or ":"));
1237 end 1237 end
1238 for _, provider in ipairs(http_apps) do 1238 for _, provider in ipairs(http_apps) do
1239 local mod = provider._provided_by;
1239 local url = module:context(host):http_url(provider.name, provider.default_path); 1240 local url = module:context(host):http_url(provider.name, provider.default_path);
1240 print("", url); 1241 print("", url);
1242 mod = mod and "mod_"..mod or ""
1243 print("", mod, url);
1241 end 1244 end
1242 print(""); 1245 print("");
1243 end 1246 end
1244 end 1247 end
1245 1248