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)
}
trestletech/plumber documentation built on May 6, 2024, 6:17 p.m.