mod_http_muc_log/mod_http_muc_log.lua
changeset 3726 bdbbf11eac0c
parent 3722 cc6f7e2e4a59
child 3753 cb61f0e06de3
--- 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)
 	};
 });