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)
}
rstudio/plumber documentation built on April 12, 2025, 7:33 p.m.