- Prevents routing conflicts with API endpoints
- Root '/' now returns service info JSON with endpoint links
- More robust separation of concerns (API vs UI)
fix: add missing _public_base_url helper
SIN-Deploy-Bot
85d33dd
-agent_card endpoint requires base URL extraction from request
-adds utility function to construct correct base URL from Request object
fix: reorder routes - mount Gradio after API routes to avoid 404
SIN-Deploy-Bot
3f1f71a
- Move app.mount('/') to end of file after all @app decorators
- This ensures /a2a/v1, /health, /.well-known/* are not shadowed by Gradio catch-all
- Standard FastAPI pattern for mixed API+Gradio apps
fix: rename app.py to main.py to avoid package import conflict
SIN-Deploy-Bot
e3a08fa
- uvicorn now uses main:app instead of app:app
- Prevents Python from importing the 'app' package instead of app.py