feat: add scrutiny route
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user