feat: add multi-server control panel and host-aware sync
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user