REFACTOR API gateway
This commit is contained in:
@@ -488,7 +488,7 @@ class TrainingService:
|
||||
params["end_date"] = request.end_date.isoformat()
|
||||
|
||||
response = await client.get(
|
||||
f"{settings.DATA_SERVICE_URL}/weather/history",
|
||||
f"{settings.DATA_SERVICE_URL}/tenants/{tenant_id}/weather/history",
|
||||
params=params,
|
||||
timeout=30.0
|
||||
)
|
||||
@@ -516,7 +516,7 @@ class TrainingService:
|
||||
params["end_date"] = request.end_date.isoformat()
|
||||
|
||||
response = await client.get(
|
||||
f"{settings.DATA_SERVICE_URL}/traffic/historical",
|
||||
f"{settings.DATA_SERVICE_URL}/tenants/{tenant_id}/traffic/historical",
|
||||
params=params,
|
||||
timeout=30.0
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user