comparison mod_websocket/mod_websocket.lua @ 909:ec4c6e8f277d

mod_websocket: Change the HTTP name to websocket, and override the default_path instead
author Florian Zeitz <florob@babelmonkeys.de>
date Wed, 13 Feb 2013 21:03:45 +0100
parents eae665bc2122
children c469a2b2d77d
comparison
equal deleted inserted replaced
908:abf0f12fe75c 909:ec4c6e8f277d
243 end 243 end
244 244
245 function module.add_host(module) 245 function module.add_host(module)
246 module:depends("http"); 246 module:depends("http");
247 module:provides("http", { 247 module:provides("http", {
248 name = "xmpp-websocket"; 248 name = "websocket";
249 default_path = "xmpp-websocket";
249 route = { 250 route = {
250 ["GET"] = handle_request; 251 ["GET"] = handle_request;
251 ["GET /"] = handle_request; 252 ["GET /"] = handle_request;
252 }; 253 };
253 }); 254 });