mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-15 07:35:27 +03:00
Fix endpoint
This commit is contained in:
parent
2dce0448f6
commit
fcb54adb5f
@ -65,7 +65,7 @@ def go2rtc_streams():
|
||||
return JSONResponse(content=stream_data)
|
||||
|
||||
|
||||
@router.get("/go2rtc/streams/<camera_name>")
|
||||
@router.get("/go2rtc/streams/{camera_name}")
|
||||
def go2rtc_camera_stream(camera_name: str):
|
||||
r = requests.get(
|
||||
f"http://127.0.0.1:1984/api/streams?src={camera_name}&video=all&audio=allµphone"
|
||||
|
||||
@ -130,6 +130,7 @@ class TestHttp(unittest.TestCase):
|
||||
|
||||
with TestClient(app) as client:
|
||||
_insert_mock_event(id)
|
||||
# TODO: Rui. All the tests are now broken since there's no .json in the FastAPI client.get/post requests
|
||||
events = client.get("/events").json
|
||||
assert events
|
||||
assert len(events) == 1
|
||||
|
||||
Loading…
Reference in New Issue
Block a user