17 lines
476 B
Python
17 lines
476 B
Python
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()
|