From 0fab8e6b0595fb5a5e5a19d067950376bd649276 Mon Sep 17 00:00:00 2001 From: Kanishk Pachauri Date: Tue, 11 Jun 2024 03:15:23 +0530 Subject: [PATCH] bug: fix router in docs --- .../src/pages/documentation/api_reference/exceptions.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs_src/src/pages/documentation/api_reference/exceptions.mdx b/docs_src/src/pages/documentation/api_reference/exceptions.mdx index 4dffc7596..da0c3b74b 100644 --- a/docs_src/src/pages/documentation/api_reference/exceptions.mdx +++ b/docs_src/src/pages/documentation/api_reference/exceptions.mdx @@ -7,7 +7,7 @@ Batman learned how to handle the error for different exception in his applicatio - + ```python {{ title: 'untyped' }} from robyn import Robyn, HTTPException, status_codes @@ -16,7 +16,7 @@ Batman learned how to handle the error for different exception in his applicatio items = {"foo": "The Foo Wrestlers"} - @app.get("/items/{item_id}") + @app.get("/hello_world/{item_id}") async def read_item(request, item_id): if item_id not in items: raise HTTPException(status_code=status_codes.HTTP_404_NOT_FOUND, detail="Item not found") @@ -32,7 +32,7 @@ Batman learned how to handle the error for different exception in his applicatio items: Dict[str, str] = {"foo": "The Foo Wrestlers"} - @app.get("/items/{item_id}") + @app.get("/hello_world/{item_id}") async def read_item(request: Request, item_id: str) -> Dict[str, str]: if item_id not in items: raise HTTPException(status_code=status_codes.HTTP_404_NOT_FOUND, detail="Item not found")