web

package
v0.26.1 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: AGPL-3.0, AGPL-3.0-or-later 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). When the SPA has not been built, a minimal HTML shell is served so that the server stays functional and tests can assert on page routes.

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