diff --git a/stat_fastapi_up42/backend.py b/stat_fastapi_up42/backend.py index f1593a4..f129e99 100644 --- a/stat_fastapi_up42/backend.py +++ b/stat_fastapi_up42/backend.py @@ -50,13 +50,13 @@ class StatUp42Backend: def __init__(self): self.settings = Settings.load() - def products(self, request: Request) -> list[Product]: + async def get_products(self, request: Request) -> list[Product]: """ Return a list of supported products. """ return PRODUCTS - def product(self, product_id: str, request: Request) -> Product | None: + async def get_product(self, product_id: str, request: Request) -> Product | None: """ Return the product identified by `product_id` or `None` if it isn't supported.