web

package
v0.25.3 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SPAHandler

func SPAHandler() http.Handler

SPAHandler serves the built React SPA. For paths matching a file in static/dist/ it serves that file; all other paths receive index.html (SPA fallback). If the SPA has not been built (static/dist/ is absent from the embed), all requests receive a 404 "spa not built" response.

func StaticHandler

func StaticHandler() http.Handler

StaticHandler serves files from the embedded static/ directory at GET /static/.

Types

This section is empty.

Jump to

Keyboard shortcuts

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