# HG changeset patch # User Link Mauve # Date 1744218335 -7200 # Node ID 8c98b1dd1ad358ece41b06806a2347c98127f260 # Parent eb8659ba53e53d0f2772d6a6cc9b6d80385c57c2 mod_register_apps: Remove compatibility with 0.11 diff -r eb8659ba53e5 -r 8c98b1dd1ad3 mod_register_apps/mod_register_apps.lua --- 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; });