Merge pull request #464 from tommyip/patch-1

Fix typo in routing.md
This commit is contained in:
Eli Uriegas 2017-02-19 11:40:48 -06:00 committed by GitHub
commit 9c306899ba

View File

@ -64,9 +64,9 @@ async def folder_handler(request, folder_id):
## HTTP request types ## HTTP request types
By default, a route defined on a URL will be avaialble for only GET requests to that URL. By default, a route defined on a URL will be available for only GET requests to that URL.
However, the `@app.route` decorator accepts an optional parameter, `methods`, However, the `@app.route` decorator accepts an optional parameter, `methods`,
whicl allows the handler function to work with any of the HTTP methods in the list. which allows the handler function to work with any of the HTTP methods in the list.
```python ```python
from sanic.response import text from sanic.response import text