mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-09-27 03:08:56 +03:00
Add the analytics preview API
This commit is contained in:
@@ -47,8 +47,8 @@ from fastapi.routing import APIRoute
|
||||
from ruamel.yaml import YAML
|
||||
from ruamel.yaml.scalarstring import LiteralScalarString
|
||||
|
||||
from frigate.api import app as main_app
|
||||
from frigate.api import (
|
||||
analytics,
|
||||
auth,
|
||||
camera,
|
||||
chat,
|
||||
@@ -65,6 +65,7 @@ from frigate.api import (
|
||||
record,
|
||||
review,
|
||||
)
|
||||
from frigate.api import app as main_app
|
||||
from frigate.api.auth import require_admin_by_default
|
||||
|
||||
logging.basicConfig(level=logging.INFO, format="%(message)s")
|
||||
@@ -145,6 +146,7 @@ def build_app() -> FastAPI:
|
||||
"""
|
||||
app = FastAPI()
|
||||
routers = [
|
||||
analytics.router,
|
||||
auth.router,
|
||||
camera.router,
|
||||
chat.router,
|
||||
|
||||
Reference in New Issue
Block a user