Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EmbeddedSPA embed.FS
Functions ¶
func GetSPAFileSystem ¶
func GetSPAFileSystem() http.FileSystem
GetSPAFileSystem returns the embedded SPA file system for use with http.FileServer
func ServeSPA ¶
func ServeSPA(w http.ResponseWriter, r *http.Request)
ServeSPA serves the embedded SPA with proper content types and SPA routing This is kept for backward compatibility
func ServeSPAWithPath ¶
func ServeSPAWithPath(w http.ResponseWriter, r *http.Request, webappPath string)
ServeSPAWithPath serves the embedded SPA with a custom webapp path
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.