add_route | R Documentation |
Adds an HTTP layer to a tower
add_route(tower, method = "GET", path, handler)
tower |
A tower object |
method |
A string containing the HTTP method to match |
path |
A string containing the path to match |
handler |
A function to call when the layer is matched |
The tower with the added route
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.