vignettes/files/apis/07-01-plot-unsafe.R

#* This is an example of an UNSAFE endpoint which
#* is vulnerable to a DOS attack.
#* @get /
#* @serializer png
function(pts=10) {
  # An example of an UNSAFE endpoint.
  plot(1:pts)
}
rstudio/plumber documentation built on April 12, 2025, 7:33 p.m.