mirror of
https://github.com/Zproger/Aurum.git
synced 2026-10-13 02:56:39 +07:00
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.
This commit is contained in:
13
backend/app/api/routes/advice.py
Normal file
13
backend/app/api/routes/advice.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from fastapi import APIRouter, Depends
|
||||
from sqlalchemy.ext.asyncio import AsyncSession
|
||||
|
||||
from app.api.deps import get_session
|
||||
from app.schemas.advice import AdviceResponse
|
||||
from app.services.advice_service import get_advice
|
||||
|
||||
router = APIRouter(prefix="/advice", tags=["advice"])
|
||||
|
||||
|
||||
@router.get("", response_model=AdviceResponse)
|
||||
async def read_advice(session: AsyncSession = Depends(get_session)) -> AdviceResponse:
|
||||
return await get_advice(session)
|
||||
Reference in New Issue
Block a user