fix(backend): http redirect for exchange_rates.py fix

This commit is contained in:
ribardej
2025-11-11 21:00:59 +01:00
parent a30ae4d010
commit 4eaf46e77e

View File

@@ -7,7 +7,7 @@ from fastapi import APIRouter, HTTPException, Query, status
router = APIRouter(prefix="/exchange-rates", tags=["exchange-rates"]) router = APIRouter(prefix="/exchange-rates", tags=["exchange-rates"])
@router.get("/", status_code=status.HTTP_200_OK) @router.get("", status_code=status.HTTP_200_OK)
async def get_exchange_rates(symbols: str = Query("EUR,USD,NOK", description="Comma-separated currency codes to fetch vs CZK")): async def get_exchange_rates(symbols: str = Query("EUR,USD,NOK", description="Comma-separated currency codes to fetch vs CZK")):
""" """
Fetch exchange rates from UniRate API on the backend and return CZK-per-target rates. Fetch exchange rates from UniRate API on the backend and return CZK-per-target rates.