diff --git a/api/advent22_api/routers/days.py b/api/advent22_api/routers/days.py index 20d9d80..ece8e87 100644 --- a/api/advent22_api/routers/days.py +++ b/api/advent22_api/routers/days.py @@ -31,12 +31,14 @@ async def get_date() -> str: @router.get("/visible_days") -async def get_visible_days() -> int: +async def get_visible_days( + visible_doors: int = Depends(user_visible_doors), +) -> int: """ Sichtbare Türchen """ - return await user_visible_doors() + return visible_doors @router.get("/part/{day}")