diff mod_admin_web/admin_web/mod_admin_web_timber.lua @ 637:210f4ce2697c

mod_admin_web: HTTP methods are now required
author Florian Zeitz <florob@babelmonkeys.de>
date Fri, 27 Apr 2012 19:59:21 +0200
parents b3a3199255d7
children a826b61c8f3a
line wrap: on
line diff
--- a/mod_admin_web/admin_web/mod_admin_web_timber.lua	Fri Apr 27 03:30:47 2012 +0200
+++ b/mod_admin_web/admin_web/mod_admin_web_timber.lua	Fri Apr 27 19:59:21 2012 +0200
@@ -135,11 +135,11 @@
 	module:provides("http", {
 		name = "admin";
 		route = {
-			["/"] = function(event)
+			["GET"] = function(event)
 				event.response.headers.location = event.request.path .. "/";
 				return 301;
 			end;
-			["/*"] = serve_file;
+			["GET /*"] = serve_file;
 		}
 	});
 end