Mercurial > prosody-modules
comparison 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 |
| parents | cc6f7e2e4a59 |
| children | cb61f0e06de3 |
comparison
equal
deleted
inserted
replaced
| 3721:c96a53bf67b3 | 3722:bdbbf11eac0c |
|---|---|
| 419 | 419 |
| 420 module:provides("http", { | 420 module:provides("http", { |
| 421 route = { | 421 route = { |
| 422 ["GET /"] = list_rooms; | 422 ["GET /"] = list_rooms; |
| 423 ["GET /*"] = logs_page; | 423 ["GET /*"] = logs_page; |
| 424 -- mod_http only supports one wildcard so logs_page will dispatch to years_page if the path contains no date | |
| 425 -- thus: | |
| 426 -- GET /room --> years_page (via logs_page) | |
| 427 -- GET /room/yyyy-mm-dd --> logs_page (for real) | |
| 424 }; | 428 }; |
| 425 }); | 429 }); |
| 426 | 430 |
