Comparison

plugins/mod_http.lua @ 6588:93423244dc5b

Merge 0.10->trunk
author Matthew Wild <mwild1@gmail.com>
date Tue, 24 Mar 2015 13:41:18 +0000
parent 6583:93bab6958683
child 6602:61b6a4fc65f1
comparison
equal deleted inserted replaced
6581:f2a7ad099e01 6588:93423244dc5b
82 module.environment.apps = apps; 82 module.environment.apps = apps;
83 local function http_app_added(event) 83 local function http_app_added(event)
84 local app_name = event.item.name; 84 local app_name = event.item.name;
85 local default_app_path = event.item.default_path or "/"..app_name; 85 local default_app_path = event.item.default_path or "/"..app_name;
86 local app_path = get_base_path(module, app_name, default_app_path); 86 local app_path = get_base_path(module, app_name, default_app_path);
87 module:log("debug", "Serving '%s' at %s", app_name, module:http_url(app_name, app_path));
88 if not app_name then 87 if not app_name then
89 -- TODO: Link to docs 88 -- TODO: Link to docs
90 module:log("error", "HTTP app has no 'name', add one or use module:provides('http', app)"); 89 module:log("error", "HTTP app has no 'name', add one or use module:provides('http', app)");
91 return; 90 return;
92 end 91 end