From bbdadd76743f992cd77002f097225e0f2ccab67f Mon Sep 17 00:00:00 2001 From: Joris Hartog Date: Thu, 9 Dec 2021 11:35:27 +0100 Subject: [PATCH] Fix duplicate method name bug in FastAPI example Fixes #75 --- docs/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/index.md b/docs/index.md index 6a25374..e5cb3d7 100644 --- a/docs/index.md +++ b/docs/index.md @@ -54,12 +54,12 @@ The above app will have a route `t1` that will accept up to 5 requests per minut # Note: the route decorator must be above the limit decorator, not below it @app.get("/home") @limiter.limit("5/minute") - async def homepage(request: Request): + async def home(request: Request): return Response("test") @app.get("/mars") @limiter.limit("5/minute") - async def homepage(request: Request, response: Response): + async def mars(request: Request, response: Response): return {"key": "value"} ```