diff --git a/apps/dashboard/backend/app/routes/scrutiny.py b/apps/dashboard/backend/app/routes/scrutiny.py new file mode 100644 index 0000000..f037a8e --- /dev/null +++ b/apps/dashboard/backend/app/routes/scrutiny.py @@ -0,0 +1,16 @@ +from __future__ import annotations + +from fastapi import APIRouter, Depends + +from app.models.sources import ScrutinySnapshot +from app.services.aggregator import AggregatorService, get_aggregator_service + + +router = APIRouter(prefix="/api", tags=["scrutiny"]) + + +@router.get("/scrutiny", response_model=ScrutinySnapshot) +async def get_scrutiny( + aggregator: AggregatorService = Depends(get_aggregator_service), +) -> ScrutinySnapshot: + return await aggregator.get_scrutiny()