Skip to main content

Module ui_assets

Module ui_assets 

Source
Available on crate features serve-ui and serve only.
Expand description

Embedded web-console assets (serve-ui feature). The static shell is PUBLIC; all data stays behind the bearer-gated /v1 API. Assets are embedded at compile time from src/serve/ui/ via rust-embed.

Functions§

asset
GET /assets/{*path} → an embedded asset by relative path.
index
GET / → the SPA shell.
spa_fallback
Router fallback: an HTML-accepting GET to an unmatched path returns the SPA shell (enables hash-route deep links); everything else gets the standard JSON 404 so the API’s 404 shape is preserved.