initial structure implemented

docs -> _docs
This commit is contained in:
Oleksandr Bezdieniezhnykh
2025-12-01 14:20:56 +02:00
parent 9134c5db06
commit abc26d5c20
360 changed files with 3881 additions and 101 deletions
+16
View File
@@ -0,0 +1,16 @@
from fastapi import APIRouter, Depends
from sse_starlette.sse import EventSourceResponse
from api.dependencies import get_flight_api
from components.flight_api import FlightAPIBase
router = APIRouter()
@router.get("/{flight_id}")
async def stream_events(
flight_id: str,
api: FlightAPIBase = Depends(get_flight_api),
) -> EventSourceResponse:
return EventSourceResponse(api.stream_events(flight_id))