API Endpoints
The application exposes a minimal set of endpoints, primarily handling static assets and a single WebSocket channel.
HTTP Endpoints
Root
- Method:
GET - URL:
/ - Description: Returns the main application interface (
index.html). - Response:
200 OK(HTML)
Static Files
- Method:
GET - URL:
/static/{file_path} - Description: Serves frontend assets (JS, CSS, Images).
- Directory:
static/ - Response:
200 OKor404 Not Found
Health Check (Implicit)
- Method:
GET - URL:
/ - Process: If the root loads, the server is running.
WebSocket Endpoints
Live Signs
- URL:
/live-signs - Protocol:
ws://orwss:// - Description: Bidirectional channel for real-time inference.
- Workflow:
- Client connects.
- Client sends binary frames.
- Server responds with JSON predictions.