Merge pull request #866 from Nikamura/patch-1

Fix typo in documentation
This commit is contained in:
Raphael Deem 2017-07-26 13:18:52 -07:00 committed by GitHub
commit 8118e542fb

View File

@ -10,11 +10,11 @@ You can pass a version number to the routes directly.
from sanic import response
@app.route('/text', verion=1)
@app.route('/text', version=1)
def handle_request(request):
return response.text('Hello world! Version 1')
@app.route('/text', verion=2)
@app.route('/text', version=2)
def handle_request(request):
return response.text('Hello world! Version 2')