2026-05-27 18:56:16 +02:00
|
|
|
"""HTTP layer for the automations feature."""
|
|
|
|
|
|
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
|
|
|
|
from fastapi import APIRouter
|
|
|
|
|
|
|
|
|
|
from .automation import router as automation_router
|
2026-07-02 17:54:31 +02:00
|
|
|
from .chat_watch import router as watch_router
|
2026-05-27 21:21:43 +02:00
|
|
|
from .run import router as run_router
|
|
|
|
|
from .trigger import router as trigger_router
|
2026-05-27 18:56:16 +02:00
|
|
|
|
|
|
|
|
router = APIRouter()
|
2026-07-02 17:54:31 +02:00
|
|
|
# Before automation_router so the literal ``/automations/watches`` path is not
|
|
|
|
|
# shadowed by the ``/automations/{automation_id}`` route.
|
|
|
|
|
router.include_router(watch_router)
|
2026-05-27 18:56:16 +02:00
|
|
|
router.include_router(automation_router)
|
2026-05-27 21:21:43 +02:00
|
|
|
router.include_router(trigger_router)
|
|
|
|
|
router.include_router(run_router)
|
2026-05-27 18:56:16 +02:00
|
|
|
|
|
|
|
|
__all__ = ["router"]
|