## route()


Decorator to register a route handler.


Usage

``` python
route(
    method,
    path,
)
```


## Parameters


`method: str`  
HTTP method.

`path: str`  
URL path pattern.


## Returns


`callable`  
Decorated handler function.
