| 1234567891011121314151617181920212223242526272829 |
- from fastapi import APIRouter
- from fastapi.responses import HTMLResponse
- router = APIRouter(prefix="/dashboard", tags=["dashboard"])
- @router.get("/", response_class=HTMLResponse)
- def dashboard_home():
- return """<!doctype html>
- <html>
- <head>
- <meta charset=\"utf-8\" />
- <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />
- <title>Trader MCP Dashboard</title>
- <style>
- body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial; margin: 2rem; }
- .card { max-width: 720px; padding: 1.25rem; border: 1px solid #e5e7eb; border-radius: 12px; }
- code { background: #f3f4f6; padding: 0.15rem 0.35rem; border-radius: 8px; }
- .muted { color: #6b7280; }
- </style>
- </head>
- <body>
- <div class=\"card\">
- <h1>Trader MCP Dashboard</h1>
- <p class=\"muted\">Scaffold page. Connect your trading widgets to MCP routes when you’re ready.</p>
- <p>Current: <code>GET /dashboard/</code></p>
- </div>
- </body>
- </html>"""
|