Return version as html

This commit is contained in:
Nicolas Mowen 2024-09-25 09:58:46 -06:00
parent 4c24b70d47
commit c8d7d74cd8

View File

@ -84,7 +84,7 @@ def go2rtc_camera_stream(camera_name: str):
@router.get("/version") @router.get("/version")
def version(): def version():
return VERSION return JSONResponse(content=VERSION, media_type="text/html", status_code=200)
@router.get("/stats") @router.get("/stats")