get_visible_days with Depends()

This commit is contained in:
Jörn-Michael Miehe 2023-09-09 21:41:30 +00:00
parent 5ca3112619
commit 3ab2a56172

View file

@ -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}")