Documentation
¶
Overview ¶
Package spa provides functionality for serving the Svelte Single Page Application
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Available bool
Available indicates if the SPA distribution files are available
Functions ¶
func AddRoutes ¶
AddRoutes adds the SPA routes to the Fiber app This should be called after all API routes are added
func HandleSPAFallback ¶
HandleSPAFallback returns a handler for SPA fallback routing This serves index.html for any non-API, non-static routes
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.