mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-01-22 20:18:30 +03:00
Fix linting
This commit is contained in:
parent
8c508b53d0
commit
067c26f271
@ -33,11 +33,8 @@ from frigate.config.camera.updater import (
|
||||
CameraConfigUpdateEnum,
|
||||
CameraConfigUpdateTopic,
|
||||
)
|
||||
<<<<<<< HEAD
|
||||
from frigate.ffmpeg_presets import FFMPEG_HWACCEL_VAAPI, _gpu_selector
|
||||
=======
|
||||
from frigate.const import THEMES_DIR
|
||||
>>>>>>> a3cdd1b1 (Add custom theme support)
|
||||
from frigate.ffmpeg_presets import FFMPEG_HWACCEL_VAAPI, _gpu_selector
|
||||
from frigate.models import Event, Timeline
|
||||
from frigate.stats.prometheus import get_metrics, update_metrics
|
||||
from frigate.util.builtin import (
|
||||
@ -188,6 +185,7 @@ def config(request: Request):
|
||||
|
||||
return JSONResponse(content=config)
|
||||
|
||||
|
||||
@router.get("/config/themes")
|
||||
def config_themes():
|
||||
themes_dir = THEMES_DIR
|
||||
@ -209,6 +207,7 @@ def config_themes():
|
||||
|
||||
return JSONResponse(content=themes)
|
||||
|
||||
|
||||
@router.get("/config/raw_paths", dependencies=[Depends(require_role(["admin"]))])
|
||||
def config_raw_paths(request: Request):
|
||||
"""Admin-only endpoint that returns camera paths and go2rtc streams without credential masking."""
|
||||
|
||||
Loading…
Reference in New Issue
Block a user