# HG changeset patch # User Kim Alvefur # Date 1571593743 -7200 # Node ID bdbbf11eac0c48e42b4b9ef8a9bf66e7d0ab7a6e # Parent c96a53bf67b373d4ca8559e3b845182950a08bd4 mod_http_muc_log: Add comment about the routing of years and logs pages diff -r c96a53bf67b3 -r bdbbf11eac0c 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) }; });