diff --git a/supervisor/server.py b/supervisor/server.py index 022101c..207d3c5 100644 --- a/supervisor/server.py +++ b/supervisor/server.py @@ -9,15 +9,23 @@ This process sits between the website and the SimpleX binaries; it is the only thing that touches the binaries. Run: uvicorn supervisor.server:app """ -import asyncio import contextlib +from pathlib import Path from fastapi import FastAPI, WebSocket, WebSocketDisconnect +from fastapi.responses import FileResponse from .supervisor import Supervisor app = FastAPI(title="SimpleX Orchestrate") +WEBUI = Path(__file__).resolve().parent.parent / "webui" / "index.html" + + +@app.get("/") +async def index() -> FileResponse: + return FileResponse(WEBUI) + _browser_clients: set[WebSocket] = set() diff --git a/webui/index.html b/webui/index.html new file mode 100644 index 0000000..c9fa29f --- /dev/null +++ b/webui/index.html @@ -0,0 +1,299 @@ + + +
+ + +Raw chat commands — same as the app's Chat Console (e.g. /user, /_contacts 1, /_groups 1).