Documentation
¶
Overview ¶
Package ui serves memini's embedded single-page admin UI (Preact + Vite). The built assets live in dist/ and are embedded into the binary at compile time, so the service stays a single static binary with no separate frontend to deploy. Regenerate dist/ with `mise run ui`.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Mount ¶
Mount serves the SPA at / on r. Requests for real built assets are served from the embedded filesystem; everything else falls back to index.html so client-side routing works on deep links and reloads.
The shell is intentionally public (no bearer auth): the API it calls (/v1) enforces the token, and the user needs to load the page to enter one.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.