comparison mod_admin_web/admin_web/mod_admin_web.lua @ 770:a85d86a7f24e

mod_admin_web: Add explicit dependencies on mod_admin_adhoc and mod_bosh
author Florian Zeitz <florob@babelmonkeys.de>
date Fri, 03 Aug 2012 15:12:41 +0200
parents 7076f58b9f48
children 292ea8df7267
comparison
equal deleted inserted replaced
769:7076f58b9f48 770:a85d86a7f24e
129 event.response.headers.content_type = mime_map[ext]; -- Content-Type should be nil when not known 129 event.response.headers.content_type = mime_map[ext]; -- Content-Type should be nil when not known
130 return data; 130 return data;
131 end 131 end
132 132
133 function module.add_host(module) 133 function module.add_host(module)
134 -- Dependencies
135 module:depends("bosh");
136 module:depends("admin_adhoc");
137 module:depends("http");
138
134 -- Setup HTTP server 139 -- Setup HTTP server
135 module:depends("http");
136 module:provides("http", { 140 module:provides("http", {
137 name = "admin"; 141 name = "admin";
138 route = { 142 route = {
139 ["GET"] = function(event) 143 ["GET"] = function(event)
140 event.response.headers.location = event.request.path .. "/"; 144 event.response.headers.location = event.request.path .. "/";