Documentation
¶
Overview ¶
Package web serves the embedded Pulse web UI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServeStatic ¶
ServeStatic returns an http.Handler that serves the React SPA. /assets/* are cached aggressively; unknown paths fall back to index.html for React Router client-side navigation.
When web/static/index.html is missing - the case in CI (the frontend build artifact is gitignored) and in backend-only dev runs - the returned handler responds with a small HTML stub explaining that the frontend has not been built. The API endpoints registered elsewhere on the router still work normally; only the SPA shell is degraded. This keeps the test suite and bare-metal dev runs from panicking at router construction.
Types ¶
This section is empty.