From 8cade2f664233acf654de3bd61c085169301360e Mon Sep 17 00:00:00 2001 From: "C. Bess" Date: Sat, 15 Oct 2016 13:03:05 -0500 Subject: [PATCH] Fix route arg; update regex Fixed a potential "copy/paste" error in the `person_handler`. Simplify route regex. --- docs/routing.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/routing.md b/docs/routing.md index 171639dc..8a1cd38b 100644 --- a/docs/routing.md +++ b/docs/routing.md @@ -21,12 +21,12 @@ async def person_handler(request, integer_arg): async def person_handler(request, number_arg): return text('Number - {}'.format(number)) -@app.route('/person/') -async def person_handler(request, person_id): - return text('Person - {}'.format(folder_id)) +@app.route('/person/') +async def person_handler(request, name): + return text('Person - {}'.format(name)) -@app.route('/folder/') +@app.route('/folder/') async def folder_handler(request, folder_id): return text('Folder - {}'.format(folder_id)) -``` \ No newline at end of file +```