add_route {tower} | R Documentation |
Add an HTTP layer to a tower
Description
Adds an HTTP layer to a tower
Usage
add_route(tower, method = "GET", path, handler)
Arguments
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 |
Value
The tower with the added route
[Package tower version 0.2.0 Index]