inst/plumber/05-static/plumber.R

#* @assets ./files
list()

#* @assets ./files /static
list()

#* @get /
#* @serializer json list(auto_unbox = TRUE)
function() {
  "static file server at './files'"
}

Try the plumber package in your browser

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

plumber documentation built on Sept. 7, 2022, 1:05 a.m.