Wrap an existing UI with an integrated POST handler on the same port
Source:R/payload.R
payload_ui.Rd
Wrap an existing UI with an integrated POST handler on the same port
Value
A function that takes a request object and returns either the regular UI (for GET requests) or an HTTP response (for POST requests). This function should be passed to shinyApp() as the ui parameter.
Examples
if (interactive()) {
ui <- payload_ui(
fluidPage(h1("My App")),
path = "/data",
token = "secret123"
)
shinyApp(ui, server, uiPattern = ".*")
}