Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultIndexFilename = "index.html"
DefaultIndexFilename the filename used as the default index
Variables ¶
This section is empty.
Functions ¶
func IndexWithConfig ¶
func IndexWithConfig(cfg IndexConfig) echo.MiddlewareFunc
IndexWithConfig configure the index middleware
Types ¶
type IndexConfig ¶
type IndexConfig struct { // Skipper defines a function to skip middleware echomiddleware.Skipper // This is required to support redirects and branch builds DomainName string // This can enabled to support serving of branch builds from a folder in a static files store or route SubDomainMode bool // The name of the file used as the index, defaults to index.html IndexFilename string }
IndexConfig defines the config for the middleware which determines the path to load the SPA index file
Click to show internal directories.
Click to hide internal directories.