Expand description
HTTP and WebSocket server built on Axum.
Routes:
GET /wsโ WebSocket endpoint (terminal I/O)GET /api/v1/pingโ health checkGET /andGET /*pathโ embedded static frontend
Modulesยง
- health ๐
- Health-check endpoint (
GET /api/v1/ping). - static_
files ๐ - Static file serving with compile-time embedded frontend assets.
- ws ๐
- WebSocket handler implementing the tty-web binary protocol.
Structsยง
- AppState
- Shared state passed to all request handlers.
Functionsยง
- router
- Build the Axum router with all routes and shared state.