Software /
code /
prosody
Comparison
plugins/mod_http.lua @ 6583:93bab6958683
Backed out 35ebcb733c4c
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 23 Mar 2015 18:42:11 +0100 |
parent | 6530:35ebcb733c4c |
child | 6602:61b6a4fc65f1 |
comparison
equal
deleted
inserted
replaced
6582:71b5de1d830b | 6583:93bab6958683 |
---|---|
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 |