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