ui

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package ui serves memini's embedded single-page admin UI (Preact + Vite). dist/ is a build artifact (gitignored; only .gitkeep is tracked) embedded at compile time. The Docker image builds it; locally use `mise run ui`. Without it the binary still boots and serves a placeholder.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mount

func Mount(r chi.Router) error

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): when MEMINI_API_KEY is set the API it calls (/v1) enforces the token; the UI itself carries none.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL