equal
deleted
inserted
replaced
1112 local http_apps = modulemanager.get_items("http-provider", host); |
1112 local http_apps = modulemanager.get_items("http-provider", host); |
1113 if #http_apps > 0 then |
1113 if #http_apps > 0 then |
1114 local http_host = module:context(host):get_option_string("http_host"); |
1114 local http_host = module:context(host):get_option_string("http_host"); |
1115 print("HTTP endpoints on "..host..(http_host and (" (using "..http_host.."):") or ":")); |
1115 print("HTTP endpoints on "..host..(http_host and (" (using "..http_host.."):") or ":")); |
1116 for _, provider in ipairs(http_apps) do |
1116 for _, provider in ipairs(http_apps) do |
1117 local url = module:context(host):http_url(provider.name); |
1117 local url = module:context(host):http_url(provider.name, provider.default_path); |
1118 print("", url); |
1118 print("", url); |
1119 end |
1119 end |
1120 print(""); |
1120 print(""); |
1121 end |
1121 end |
1122 end |
1122 end |