inst/examples/static/app.R

library(webfakes)

app <- new_app()
app$use(mw_log())

app$use(mw_static("public"))

app$listen(as.integer(Sys.getenv("PORT", NA_character_)))

Try the webfakes package in your browser

Any scripts or data that you put into this service are public.

webfakes documentation built on Oct. 1, 2023, 9:06 a.m.