Fix typos

I guess renaming was forgotten in a copy-n-paste frenzy?!
This commit is contained in:
Roger Erens 2016-10-21 23:47:13 +02:00 committed by GitHub
parent b74d312c57
commit 268a87e3b4

View File

@ -10,15 +10,15 @@ from sanic import Sanic
from sanic.response import text
@app.route('/tag/<tag>')
async def person_handler(request, tag):
async def tag_handler(request, tag):
return text('Tag - {}'.format(tag))
@app.route('/number/<integer_arg:int>')
async def person_handler(request, integer_arg):
async def integer_handler(request, integer_arg):
return text('Integer - {}'.format(integer_arg))
@app.route('/number/<number_arg:number>')
async def person_handler(request, number_arg):
async def number_handler(request, number_arg):
return text('Number - {}'.format(number_arg))
@app.route('/person/<name:[A-z]>')