Mercurial > prosody-modules
view mod_service_outage_status/mod_service_outage_status.lua @ 5488:9a4556a13cc7
mod_rest/example: Include 'application_type' in registration
It defaults to "web", which in turn mandates https: redirect URIs, which
would not work with this example using the OOB URI.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 26 May 2023 14:32:59 +0200 |
parents | 03044a6f5f4c |
children |
line wrap: on
line source
local dataforms = require "util.dataforms"; local form_layout = dataforms.new({ { type = "hidden"; var = "FORM_TYPE"; value = "urn:xmpp:sos:0" }; { type = "list-multi"; name = "addrs"; var = "external-status-addresses" }; }); local addresses = module:get_option_array("outage_status_urls"); module:add_extension(form_layout:form({ addrs = addresses }, "result"));