Merge pull request #673 from 38elements/routing
Fix docs/sanic/routing.md
This commit is contained in:
commit
db58bd68f5
|
@ -52,7 +52,7 @@ async def integer_handler(request, integer_arg):
|
|||
async def number_handler(request, number_arg):
|
||||
return text('Number - {}'.format(number_arg))
|
||||
|
||||
@app.route('/person/<name:[A-z]>')
|
||||
@app.route('/person/<name:[A-z]+>')
|
||||
async def person_handler(request, name):
|
||||
return text('Person - {}'.format(name))
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user