frontend

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package frontend embeds the Vue SPA dist directory for serving from the Go binary. The dist/ directory is populated by the build process (scripts/build-all.sh copies web/dist/ here). A placeholder index.html is committed for development builds.

Index

Constants

This section is empty.

Variables

View Source
var Assets embed.FS

Assets contains the embedded Vue SPA build output. The build process copies web/dist/* into internal/frontend/dist/ before compilation.

Functions

func Handler

func Handler() http.Handler

Handler returns an http.Handler that serves the embedded Vue SPA. API routes (/auth/*, /user/*, /client/*, /.well-known/*, /healthz, /readyz) take priority via ServeMux specificity — this handler only serves the catch-all "/". Any path that doesn't match a static file returns index.html for client-side routing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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