From aef7a2817d838aeb234a7b9dcf886d93d2390b8d Mon Sep 17 00:00:00 2001 From: Dmitry Leonov <130ndim@gmail.com> Date: Sun, 14 May 2023 17:52:11 +0300 Subject: [PATCH] docs: fix function name mismatch in python route example (#23010) --- docs/src/api/class-route.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/api/class-route.md b/docs/src/api/class-route.md index 4af70a2fad..43e9d718f0 100644 --- a/docs/src/api/class-route.md +++ b/docs/src/api/class-route.md @@ -264,7 +264,7 @@ page.route("**/*", route -> { ```python async # Handle GET requests. -def handle_post(route): +def handle_get(route): if route.request.method != "GET": route.fallback() return @@ -285,7 +285,7 @@ await page.route("**/*", handle_post) ```python sync # Handle GET requests. -def handle_post(route): +def handle_get(route): if route.request.method != "GET": route.fallback() return