Diff

mod_http_muc_log/mod_http_muc_log.lua @ 3722:bdbbf11eac0c

mod_http_muc_log: Add comment about the routing of years and logs pages
author Kim Alvefur <zash@zash.se>
date Sun, 20 Oct 2019 19:49:03 +0200
parent 3718:cc6f7e2e4a59
child 3749:cb61f0e06de3
line wrap: on
line diff
--- a/mod_http_muc_log/mod_http_muc_log.lua	Sat Oct 19 17:01:43 2019 +0200
+++ b/mod_http_muc_log/mod_http_muc_log.lua	Sun Oct 20 19:49:03 2019 +0200
@@ -421,6 +421,10 @@
 	route = {
 		["GET /"] = list_rooms;
 		["GET /*"] = logs_page;
+		-- mod_http only supports one wildcard so logs_page will dispatch to years_page if the path contains no date
+		-- thus:
+		-- GET /room --> years_page (via logs_page)
+		-- GET /room/yyyy-mm-dd --> logs_page (for real)
 	};
 });