tests/testthat/files/filter-inject.R

#* @filter foo
function(req){
  req$args$hello <- 13
}

#* @get /
function(hello){
  hello
}

Try the plumber package in your browser

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

plumber documentation built on May 29, 2024, 8:52 a.m.