Mercurial > prosody-modules
comparison mod_invite/mod_invite.lua @ 2240:967ba25edf58
mod_invite: Serve CSS correctly
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 08 Jul 2016 23:58:10 +0200 |
| parents | df696c8d5282 |
| children | 2103135f1851 |
comparison
equal
deleted
inserted
replaced
| 2239:df696c8d5282 | 2240:967ba25edf58 |
|---|---|
| 118 end | 118 end |
| 119 end | 119 end |
| 120 | 120 |
| 121 module:provides("http", { | 121 module:provides("http", { |
| 122 route = { | 122 route = { |
| 123 ["GET /a_file.txt"] = serve(module:get_directory().."/my_file.txt"); | 123 ["GET /bootstrap.min.css"] = serve(module:get_directory() .. "/invite/bootstrap.min.css"); |
| 124 ["GET /bootstrap.min.css"] = serve(module:get_directory()); | |
| 125 ["GET /*"] = generate_page; | 124 ["GET /*"] = generate_page; |
| 126 POST = handle_form; | 125 POST = handle_form; |
| 127 }; | 126 }; |
| 128 }); | 127 }); |
| 129 | 128 |
