From ad8859f22c2a76353dfa8b700dd473260fc556d4 Mon Sep 17 00:00:00 2001 From: Micha Date: Sun, 5 Apr 2026 21:09:05 +0000 Subject: [PATCH] feat: add scrutiny route --- apps/dashboard/backend/app/routes/scrutiny.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 apps/dashboard/backend/app/routes/scrutiny.py 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()