Description Usage Arguments Details Value Examples
A description of add_route
1 2 3 4 5 6 7 |
router |
router class |
method |
http verb such "GET", "POST", "PUT" or "DELETE" |
endpoint |
string e.g. "/add/", slashes are important!! |
fun |
function |
A details of add_route
router
Object
Object
1 2 3 4 5 6 7 8 | r <- router()
r <- add_route(r,
method = "GET",
endpoint = "/add/",
fun = function(a, b) {
return(as.numeric(a) + as.numeric(b))
}
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.