mod_http_muc_log: Add comment about the routing of years and logs pages
authorKim Alvefur <zash@zash.se>
Sun, 20 Oct 2019 19:49:03 +0200
changeset 3726 bdbbf11eac0c
parent 3725 c96a53bf67b3
child 3727 427879b46061
mod_http_muc_log: Add comment about the routing of years and logs pages
mod_http_muc_log/mod_http_muc_log.lua
--- 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)
 	};
 });