mod_register_apps/mod_register_apps.lua
changeset 4980 75b6e5df65f9
parent 4979 733e5513f691
child 5018 eb3f99d0e72d
equal deleted inserted replaced
4979:733e5513f691 4980:75b6e5df65f9
     1 -- luacheck: ignore 631
     1 -- luacheck: ignore 631
     2 module:depends("http");
     2 module:depends("http");
     3 local http_files
     3 local http_files
     4 if not pcall(function()
     4 if prosody.process_type == "prosody" then
     5 	-- Prosody >= 0.12
     5 	-- Prosody >= 0.12
     6 	http_files = require "net.http.files";
     6 	http_files = require "net.http.files";
     7 end) then
     7 else
     8 	-- Prosody <= 0.11
     8 	-- Prosody <= 0.11
     9 	http_files = module:depends "http_files";
     9 	http_files = module:depends "http_files";
    10 end
    10 end
    11 
    11 
    12 local app_config = module:get_option("site_apps", {
    12 local app_config = module:get_option("site_apps", {