Fix typo in documentation
This commit is contained in:
parent
eb06e6ba51
commit
621343112d
|
@ -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')
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user