Software /
code /
prosody-modules
Changeset
6230:8c98b1dd1ad3
mod_register_apps: Remove compatibility with 0.11
author | Link Mauve <linkmauve@linkmauve.fr> |
---|---|
date | Wed, 09 Apr 2025 19:05:35 +0200 |
parents | 6229:eb8659ba53e5 |
children | 6231:6b3deaa523ad |
files | mod_register_apps/mod_register_apps.lua |
diffstat | 1 files changed, 2 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_register_apps/mod_register_apps.lua Wed Apr 09 19:05:28 2025 +0200 +++ b/mod_register_apps/mod_register_apps.lua Wed Apr 09 19:05:35 2025 +0200 @@ -1,13 +1,6 @@ -- luacheck: ignore 631 module:depends("http"); -local http_files -if prosody.process_type then - -- Prosody >= 0.12 - http_files = require "net.http.files"; -else - -- Prosody <= 0.11 - http_files = module:depends "http_files"; -end +local http_files = require "net.http.files"; local app_config = module:get_option("site_apps", { { @@ -225,7 +218,7 @@ module:provides("http", { route = { - ["GET /assets/*"] = http_files and http_files.serve({ + ["GET /assets/*"] = http_files.serve({ path = module:get_directory().."/assets"; mime_map = mime_map; });