Software /
code /
prosody-modules
Comparison
mod_http_muc_log/mod_http_muc_log.lua @ 3757:971417eedfee
mod_http_muc_log: Set a http app title
Integrate with mod_http_index
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 23 Nov 2019 04:52:43 +0100 |
parent | 3750:9002c8a2165f |
child | 3892:96a2e5097fc4 |
comparison
equal
deleted
inserted
replaced
3756:ba4f45b8678f | 3757:971417eedfee |
---|---|
434 dates = {}; -- COMPAT util.interpolation {nil|func#...} bug | 434 dates = {}; -- COMPAT util.interpolation {nil|func#...} bug |
435 }); | 435 }); |
436 end | 436 end |
437 | 437 |
438 module:provides("http", { | 438 module:provides("http", { |
439 title = module:get_option_string("name", "Chatroom logs"); | |
439 route = { | 440 route = { |
440 ["GET /"] = list_rooms; | 441 ["GET /"] = list_rooms; |
441 ["GET /*"] = logs_page; | 442 ["GET /*"] = logs_page; |
442 -- mod_http only supports one wildcard so logs_page will dispatch to years_page if the path contains no date | 443 -- mod_http only supports one wildcard so logs_page will dispatch to years_page if the path contains no date |
443 -- thus: | 444 -- thus: |