Skip to content

Commit

Permalink
Fixed docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
sambarza committed Nov 2, 2024
1 parent b054529 commit b1cfea5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/cat/mad_hatter/decorators/endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down Expand Up @@ -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():
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit b1cfea5

Please sign in to comment.