# HG changeset patch # User Kim Alvefur # Date 1613886551 -3600 # Node ID 42078734033990f8bd7e173d341e18897af76ec0 # Parent e6122e6a40a05e877d1d550ab0d6bcf8f9b2f266 mod_http_file_share: Return a message from the base URL diff -r e6122e6a40a0 -r 420787340339 plugins/mod_http_file_share.lua --- a/plugins/mod_http_file_share.lua Sun Feb 21 06:20:55 2021 +0100 +++ b/plugins/mod_http_file_share.lua Sun Feb 21 06:49:11 2021 +0100 @@ -435,6 +435,15 @@ route = { ["PUT /*"] = handle_upload; ["GET /*"] = handle_download; + ["GET /"] = function (event) + return prosody.events.fire_event("http-message", { + response = event.response; + --- + title = "Prosody HTTP Upload endpoint"; + message = "This is where files will be uploaded to, and served from."; + warning = not (event.request.secure) and "This endpoint is not considered secure!" or nil; + }) or "This is the Prosody HTTP Upload endpoint."; + end } }); end