From 58da830d9463307e2a332246d2b2b0446fd137c3 Mon Sep 17 00:00:00 2001 From: Micha Date: Sun, 5 Apr 2026 21:06:39 +0000 Subject: [PATCH] feat: add adguard + scrutiny routes --- apps/dashboard/backend/app/routes/adguard.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 apps/dashboard/backend/app/routes/adguard.py diff --git a/apps/dashboard/backend/app/routes/adguard.py b/apps/dashboard/backend/app/routes/adguard.py new file mode 100644 index 0000000..a71d0fd --- /dev/null +++ b/apps/dashboard/backend/app/routes/adguard.py @@ -0,0 +1,16 @@ +from __future__ import annotations + +from fastapi import APIRouter, Depends + +from app.models.sources import AdGuardSnapshot +from app.services.aggregator import AggregatorService, get_aggregator_service + + +router = APIRouter(prefix="/api", tags=["adguard"]) + + +@router.get("/adguard", response_model=AdGuardSnapshot) +async def get_adguard( + aggregator: AggregatorService = Depends(get_aggregator_service), +) -> AdGuardSnapshot: + return await aggregator.get_adguard()