Mercurial > prosody-modules
comparison mod_admin_web/admin_web/mod_admin_web.lua @ 4197:2825fa4504f0
mod_admin_web: Add a title for mod_http_index
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Mon, 12 Oct 2020 19:26:33 +0200 |
| parents | 06a9ac93e2f1 |
| children | 963c16e417d6 |
comparison
equal
deleted
inserted
replaced
| 4196:a10e27c9a289 | 4197:2825fa4504f0 |
|---|---|
| 134 path = module:get_directory() .. "/www_files"; | 134 path = module:get_directory() .. "/www_files"; |
| 135 }; | 135 }; |
| 136 | 136 |
| 137 -- Setup HTTP server | 137 -- Setup HTTP server |
| 138 module:provides("http", { | 138 module:provides("http", { |
| 139 title = "Admin Interface"; | |
| 139 name = "admin"; | 140 name = "admin"; |
| 140 route = { | 141 route = { |
| 141 ["GET"] = function(event) | 142 ["GET"] = function(event) |
| 142 event.response.headers.location = event.request.path .. "/"; | 143 event.response.headers.location = event.request.path .. "/"; |
| 143 return 301; | 144 return 301; |
