Merge pull request #673 from 38elements/routing

Fix docs/sanic/routing.md
This commit is contained in:
Eli Uriegas 2017-04-30 20:22:30 -07:00 committed by GitHub
commit db58bd68f5

View File

@ -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))