Skip to main content

Module static_files

Module static_files 

Source
Expand description

Static file serving for the embedded web dashboard.

Uses rust-embed to bundle the web/dist/ directory into the binary at compile time.

Functions§

handle_spa_fallback
SPA fallback: serve index.html for any non-API, non-static GET request. Injects window.__CONSTRUCT_BASE__ so the frontend knows the path prefix.
handle_static
Serve static files from /_app/* path