mirror of
https://github.com/Zproger/Aurum.git
synced 2026-10-12 18:46:40 +07:00
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.
14 lines
495 B
Python
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)
|