vignettes/files/apis/07-03-file-unsafe.R

#* This is an example of an UNSAFE endpoint which
#* does not sanitize user input
#* @get /
function(file) {

  # An example of an UNSAFE endpoint.
  path <- file.path("./datasets", file)
  readLines(path)
}
trestletech/plumber documentation built on May 6, 2024, 6:17 p.m.