Skip to content

Commit

Permalink
Use r language for markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
schloerke authored Nov 17, 2023
1 parent e42524e commit ad76299
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vignettes/routing-and-input.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ Only the first matched formal arguments are passed automatically to the endpoint

While not required, it is recommended that endpoints have a function definition that only accepts the formals `req`, `res`, and `...` to avoid duplicates. If the endpoint arguments are to be processed like a list, they are available at `req$argsBody`, with all arguments at `req$args`. `req$args` is a combination of `list(req = req, res = res)`, `req$argsPath`, `req$argsBody`, and `req$argsQuery`.

```{r, echo=FALSE, results='asis'}
``` r
function(req[, res, ...]) {
...
req$argsQuery
Expand Down

0 comments on commit ad76299

Please sign in to comment.