Changeset

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
parents 3721:c96a53bf67b3
children 3723:427879b46061
files mod_http_muc_log/mod_http_muc_log.lua
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
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)
 	};
 });