Fix docs/sanic/routing.md

This commit is contained in:
38elements 2017-04-30 18:59:36 +09:00
parent 6dc6f9bbb5
commit e65f08a2c8

View File

@ -52,7 +52,7 @@ async def integer_handler(request, integer_arg):
async def number_handler(request, number_arg): async def number_handler(request, number_arg):
return text('Number - {}'.format(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): async def person_handler(request, name):
return text('Person - {}'.format(name)) return text('Person - {}'.format(name))