Documentation
¶
Overview ¶
Package ui serves the admin SPA as static files from a pre-built Vite dist directory. It provides a catch-all SPA fallback that serves index.html for any path not matched by other routes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRoutes ¶
RegisterRoutes registers static file serving and SPA fallback routes. The getDistPath function is called at request time so routes can be mounted before PostSetup sets the dist path (same pattern as helper). Must be called AFTER all API routes are registered, since the catch-all PathPrefix("/") would otherwise shadow more specific routes.
Types ¶
Click to show internal directories.
Click to hide internal directories.