Add a new route to your pipework project
add_route.Rd
Add 3 files, one is the route definition that will be exposed to your plumber router on calling `get_internal_routes()` [from generate_api_.R generated by `lay_pipework()`, stored at inst/extdata/api/routes/] A second file R/api_my_route.R will be generated, this is the wrapper for your core logic for the API. It will receive the request, typically then call another function. The third file is R/<route_name>.R for creating the logic behind the routed request.
Usage
add_route(
route,
method = c("get", "post", "put", "delete", "head", "options", "patch", "use")
)