Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SPAHandler ¶
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 ¶
StaticHandler serves files from the embedded static/ directory at GET /static/.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.