Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Index ¶
Index mounts serving of index.html on a path prefix. It uses a prefix since reloads of a page should give serving of the index.html page with the same url for the javascript frontend.
Types ¶
type Config ¶
type Config struct { // RootPath is defined for changing the root path of serving. This is useful // if the server is behind a proxy that changes the root path. RootPath string `json:"root_path"` // BasePath is to change the base path after the root path. // It is used for dynamic mode where we have different locations for the index page. BasePath string `json:"base_path"` }
Click to show internal directories.
Click to hide internal directories.