imporve features
This commit is contained in:
@@ -72,7 +72,7 @@ app.include_router(subscription.router, prefix="/api/v1", tags=["subscriptions"]
|
||||
app.include_router(notification.router, prefix="/api/v1/notifications", tags=["notifications"])
|
||||
app.include_router(nominatim.router, prefix="/api/v1/nominatim", tags=["location"])
|
||||
app.include_router(geocoding.router, prefix="/api/v1/geocoding", tags=["geocoding"])
|
||||
app.include_router(poi_context.router, prefix="/api/v1/poi-context", tags=["poi-context"])
|
||||
# app.include_router(poi_context.router, prefix="/api/v1/poi-context", tags=["poi-context"]) # Removed to implement tenant-based architecture
|
||||
app.include_router(pos.router, prefix="/api/v1/pos", tags=["pos"])
|
||||
app.include_router(demo.router, prefix="/api/v1", tags=["demo"])
|
||||
|
||||
|
||||
@@ -138,6 +138,7 @@ async def proxy_tenant_traffic(request: Request, tenant_id: str = Path(...), pat
|
||||
@router.api_route("/{tenant_id}/external/{path:path}", methods=["GET", "POST", "OPTIONS"])
|
||||
async def proxy_tenant_external(request: Request, tenant_id: str = Path(...), path: str = ""):
|
||||
"""Proxy tenant external service requests (v2.0 city-based optimized endpoints)"""
|
||||
# Route to external service with normal path structure
|
||||
target_path = f"/api/v1/tenants/{tenant_id}/external/{path}".rstrip("/")
|
||||
return await _proxy_to_external_service(request, target_path)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user