Software /
code /
prosody-modules
Comparison
mod_stanza_counter/mod_stanza_counter_http.lua @ 659:f7aacd9e93de
mod_stanza_counter: remove module:set_global, with the default_host handler it's not required.
author | Marco Cirillo <maranda@lightwitch.org> |
---|---|
date | Sun, 29 Apr 2012 20:41:59 +0000 |
parent | 650:34e7093cf419 |
child | 678:429be98872dc |
comparison
equal
deleted
inserted
replaced
658:39306c770d7d | 659:f7aacd9e93de |
---|---|
1 -- (C) 2011, Marco Cirillo (LW.Org) | 1 -- (C) 2011, Marco Cirillo (LW.Org) |
2 -- Exposes stats on HTTP for the stanza counter module. | 2 -- Exposes stats on HTTP for the stanza counter module. |
3 | 3 |
4 module:depends("http") | 4 module:depends("http") |
5 module:set_global() | |
6 | 5 |
7 local base_path = module:get_option_array("stanza_counter_basepath", "/stanza-counter/") | 6 local base_path = module:get_option_array("stanza_counter_basepath", "/stanza-counter/") |
8 | 7 |
9 -- http handlers | 8 -- http handlers |
10 | 9 |