mod_stanza_counter/mod_stanza_counter_http.lua
changeset 659 f7aacd9e93de
parent 650 34e7093cf419
child 678 429be98872dc
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