add_route: Add an HTTP layer to a tower
Description
Adds an HTTP layer to a tower
Usage
add_route(tower, method = "GET", path, handler)
Value
The tower with the added route
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