Files
aurum/backend/app/api/routes/insights.py
ZProger fe9b079c12 Initial public release
Aurum — a self-hosted personal finance operating system: cash flow,
net worth tracking, budgets, goals, recurring payments, reports,
proactive alerts, and a compound-interest returns calculator, all
bilingual (RU/EN) and mobile-first. Ships as a three-container Docker
Compose stack (Postgres + FastAPI + nginx-served React frontend).

See README.md for setup and CONTRIBUTING.md for development.
2026-08-16 18:39:52 +03:00

14 lines
495 B
Python

from fastapi import APIRouter, Depends
from sqlalchemy.ext.asyncio import AsyncSession
from app.api.deps import get_session
from app.schemas.insights import AlertsResponse
from app.services.insights_service import get_financial_alerts
router = APIRouter(prefix="/insights", tags=["insights"])
@router.get("/alerts", response_model=AlertsResponse)
async def read_financial_alerts(session: AsyncSession = Depends(get_session)) -> AlertsResponse:
return await get_financial_alerts(session)