Software / code / prosody-modules
Comparison
mod_register_apps/mod_register_apps.lua @ 5673:0eb2d5ea2428
merge
| author | Stephen Paul Weber <singpolyma@singpolyma.net> |
|---|---|
| date | Sat, 06 May 2023 19:40:23 -0500 |
| parent | 5178:556bf57d6417 |
| child | 5740:e06af1403a60 |
comparison
equal
deleted
inserted
replaced
| 5672:2c69577b28c2 | 5673:0eb2d5ea2428 |
|---|---|
| 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 prosody.process_type == "prosody" then | 4 if prosody.process_type then |
| 5 -- Prosody >= 0.12 | 5 -- Prosody >= 0.12 |
| 6 http_files = require "net.http.files"; | 6 http_files = require "net.http.files"; |
| 7 else | 7 else |
| 8 -- Prosody <= 0.11 | 8 -- Prosody <= 0.11 |
| 9 http_files = module:depends "http_files"; | 9 http_files = module:depends "http_files"; |