get_visible_days with Depends()
This commit is contained in:
parent
5ca3112619
commit
3ab2a56172
1 changed files with 4 additions and 2 deletions
|
@ -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}")
|
||||
|
|
Loading…
Reference in a new issue