Module web

Module web 

Source
Expand description

This module contains the web server implementation for the application.

It sets up an Axum server to serve both static web UI assets and a REST API, including WebSocket communication.

Modulesยง

api ๐Ÿ”’
This module defines the HTTP API endpoints for the web user interface.
websocket ๐Ÿ”’
This module handles WebSocket connections for the web UI.

Structsยง

Assets ๐Ÿ”’
Embeds the web UI static assets into the binary.

Functionsยง

serve_file ๐Ÿ”’
Serves a static file from the embedded assets.
start_server
Starts the web server.
static_handler ๐Ÿ”’
Handles requests for static web UI assets.