ui

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package ui embeds the built admin console (web/admin). `make web` builds it into dist/app; without a build the console serves a placeholder page.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(prefix, base string) http.Handler

Handler serves the single-page app mounted at prefix ("/admin/"): files that exist are served directly, every other path gets index.html so the client-side router can resolve it. base is where browsers reach prefix, prefix itself unless a gateway serves it under a path of its own: the page's <base> names it, and its scripts, styles and API calls are relative to it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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