fix: add missing router imports and include routers in app
All checks were successful
Cross-Node Transaction Testing / transaction-test (push) Successful in 3s
Deploy to Testnet / deploy-testnet (push) Successful in 1m11s
Integration Tests / test-service-integration (push) Successful in 2m10s
Multi-Node Stress Testing / stress-test (push) Successful in 11s
Node Failover Simulation / failover-test (push) Successful in 17s
Python Tests / test-python (push) Successful in 17s
Security Scanning / security-scan (push) Successful in 32s
All checks were successful
Cross-Node Transaction Testing / transaction-test (push) Successful in 3s
Deploy to Testnet / deploy-testnet (push) Successful in 1m11s
Integration Tests / test-service-integration (push) Successful in 2m10s
Multi-Node Stress Testing / stress-test (push) Successful in 11s
Node Failover Simulation / failover-test (push) Successful in 17s
Python Tests / test-python (push) Successful in 17s
Security Scanning / security-scan (push) Successful in 32s
- Add blockchain, edge_gpu, multi_modal_rl to router imports - Add include_router calls for edge_gpu and multi_modal_rl - Remove conditional imports since files now exist
This commit is contained in:
@@ -48,9 +48,11 @@ from .routers import (
|
||||
admin,
|
||||
agent_identity,
|
||||
agent_router,
|
||||
blockchain,
|
||||
client,
|
||||
cross_chain_integration,
|
||||
developer_platform,
|
||||
edge_gpu,
|
||||
exchange,
|
||||
explorer,
|
||||
global_marketplace,
|
||||
@@ -60,6 +62,7 @@ from .routers import (
|
||||
marketplace_gpu,
|
||||
marketplace_offers,
|
||||
miner,
|
||||
multi_modal_rl,
|
||||
payments,
|
||||
services,
|
||||
users,
|
||||
@@ -351,6 +354,12 @@ def create_app() -> FastAPI:
|
||||
|
||||
# Add blockchain router for CLI compatibility
|
||||
app.include_router(blockchain, prefix="/v1")
|
||||
|
||||
# Add edge GPU router
|
||||
app.include_router(edge_gpu, prefix="/v1")
|
||||
|
||||
# Add multi-modal RL router
|
||||
app.include_router(multi_modal_rl, prefix="/v1")
|
||||
|
||||
# Add Prometheus metrics endpoint
|
||||
metrics_app = make_asgi_app()
|
||||
|
||||
@@ -11,12 +11,7 @@ from .agent_identity import router as agent_identity
|
||||
from .blockchain import router as blockchain
|
||||
from .cache_management import router as cache_management
|
||||
from .client import router as client
|
||||
|
||||
try:
|
||||
from .edge_gpu import router as edge_gpu
|
||||
except ImportError:
|
||||
edge_gpu = None
|
||||
print("WARNING: Edge GPU router not available (missing module)")
|
||||
from .edge_gpu import router as edge_gpu
|
||||
|
||||
from .exchange import router as exchange
|
||||
from .explorer import router as explorer
|
||||
@@ -28,6 +23,7 @@ from .payments import router as payments
|
||||
from .services import router as services
|
||||
from .users import router as users
|
||||
from .web_vitals import router as web_vitals
|
||||
from .multi_modal_rl import router as multi_modal_rl
|
||||
|
||||
# from .registry import router as registry
|
||||
|
||||
|
||||
Reference in New Issue
Block a user