diff --git a/core/cat/mad_hatter/decorators/endpoint.py b/core/cat/mad_hatter/decorators/endpoint.py index 7d8114b33..52538317b 100644 --- a/core/cat/mad_hatter/decorators/endpoint.py +++ b/core/cat/mad_hatter/decorators/endpoint.py @@ -42,7 +42,7 @@ def endpoint( Define a custom API endpoint, parameters are the same as FastAPI path operation. Examples: .. code-block:: python - from cat.mad_hatter.decorators.endpoint import endpoint + from cat.mad_hatter.decorators import endpoint @endpoint.endpoint(path="/hello", methods=["GET"]) def my_endpoint(): @@ -78,7 +78,7 @@ def get( Define a custom API endpoint for GET operation, parameters are the same as FastAPI path operation. Examples: .. code-block:: python - from cat.mad_hatter.decorators.endpoint import endpoint + from cat.mad_hatter.decorators import endpoint @endpoint.get(path="/hello") def my_get_endpoint(): @@ -108,7 +108,7 @@ def post( Examples: .. code-block:: python - from cat.mad_hatter.decorators.endpoint import endpoint + from cat.mad_hatter.decorators import endpoint from pydantic import BaseModel class Item(BaseModel):