comparison mod_register_web/mod_register_web.lua @ 1239:cc5cbeeb9fc7

mod_register_web: Handle URLs with a trailing slash
author Kim Alvefur <zash@zash.se>
date Sun, 01 Dec 2013 01:34:11 +0100
parents 752285859607
children 34fbe58d19da
comparison
equal deleted inserted replaced
1238:752285859607 1239:cc5cbeeb9fc7
171 end 171 end
172 172
173 module:provides("http", { 173 module:provides("http", {
174 route = { 174 route = {
175 GET = generate_page; 175 GET = generate_page;
176 ["GET /"] = generate_page;
176 POST = handle_form; 177 POST = handle_form;
178 ["POST /"] = handle_form;
177 }; 179 };
178 }); 180 });