Imporve the predicciones page
This commit is contained in:
@@ -113,6 +113,12 @@ async def proxy_tenant_models(request: Request, tenant_id: str = Path(...), path
|
||||
target_path = f"/api/v1/tenants/{tenant_id}/models/{path}".rstrip("/")
|
||||
return await _proxy_to_training_service(request, target_path, tenant_id=tenant_id)
|
||||
|
||||
@router.api_route("/{tenant_id}/statistics", methods=["GET", "OPTIONS"])
|
||||
async def proxy_tenant_statistics(request: Request, tenant_id: str = Path(...)):
|
||||
"""Proxy tenant statistics requests to training service"""
|
||||
target_path = f"/api/v1/tenants/{tenant_id}/statistics"
|
||||
return await _proxy_to_training_service(request, target_path, tenant_id=tenant_id)
|
||||
|
||||
# ================================================================
|
||||
# TENANT-SCOPED FORECASTING SERVICE ENDPOINTS
|
||||
# ================================================================
|
||||
|
||||
Reference in New Issue
Block a user