Software /
code /
prosody-modules
Comparison
mod_admin_web/admin_web/mod_admin_web.lua @ 4185:06a9ac93e2f1
Back out a8aacfbdaea9: Not needed since change in trunk
See trunk 1dc49accb58e
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 09 Oct 2020 16:47:46 +0200 |
parent | 4181:fcc6b92869d4 |
child | 4197:2825fa4504f0 |
comparison
equal
deleted
inserted
replaced
4184:9127fa98ee1e | 4185:06a9ac93e2f1 |
---|---|
128 local http_files = require "net.http.files"; | 128 local http_files = require "net.http.files"; |
129 serve = http_files.serve; | 129 serve = http_files.serve; |
130 end) then | 130 end) then |
131 serve = module:depends"http_files".serve; | 131 serve = module:depends"http_files".serve; |
132 end | 132 end |
133 local path = module:get_directory() .. "/www_files"; | |
134 if module.resource_path then | |
135 -- Available from trunk be73df6765b9 if installed via luarocks | |
136 path = module.resource_path .. "/www_files"; | |
137 end | |
138 local serve_file = serve { | 133 local serve_file = serve { |
139 path = path; | 134 path = module:get_directory() .. "/www_files"; |
140 }; | 135 }; |
141 | 136 |
142 -- Setup HTTP server | 137 -- Setup HTTP server |
143 module:provides("http", { | 138 module:provides("http", { |
144 name = "admin"; | 139 name = "admin"; |