mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-01-27 14:38:28 +03:00
add description to api endpoint
This commit is contained in:
parent
b2ceb15db4
commit
f589a60cde
@ -126,7 +126,9 @@ async def camera_ptz_info(request: Request, camera_name: str):
|
|||||||
|
|
||||||
|
|
||||||
@router.get(
|
@router.get(
|
||||||
"/{camera_name}/latest.{extension}", dependencies=[Depends(require_camera_access)]
|
"/{camera_name}/latest.{extension}",
|
||||||
|
dependencies=[Depends(require_camera_access)],
|
||||||
|
description="Returns the latest frame from the specified camera in the requested format (jpg, png, webp). Falls back to preview frames if the camera is offline.",
|
||||||
)
|
)
|
||||||
async def latest_frame(
|
async def latest_frame(
|
||||||
request: Request,
|
request: Request,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user