feat: add multi-server control panel and host-aware sync

This commit is contained in:
Luca Sacchi Ricciardi
2026-04-25 15:40:20 +02:00
parent 3ba6a9a41c
commit f60781bd7f
13 changed files with 641 additions and 41 deletions
+10 -4
View File
@@ -54,13 +54,19 @@ templates_path = Path(__file__).parent / "app" / "web" / "templates"
@app.get("/")
async def root():
"""Primary page: models currently loaded in memory (ollama ps)."""
return FileResponse(templates_path / "models_running.html")
"""Primary page: configured servers selector and control panel."""
return FileResponse(templates_path / "servers.html")
@app.get("/servers")
async def servers_page():
"""Configured Ollama servers page."""
return FileResponse(templates_path / "servers.html")
@app.get("/dashboard")
async def dashboard():
"""Legacy alias for the primary page."""
return FileResponse(templates_path / "models_running.html")
"""Legacy alias for configured servers page."""
return FileResponse(templates_path / "servers.html")
@app.get("/models-available")