Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Frontend ¶
type Frontend struct {
// contains filtered or unexported fields
}
func NewFrontendFromEmbedded ¶
func (*Frontend) AssetHandler ¶
func (f *Frontend) AssetHandler(w http.ResponseWriter, r *http.Request)
Serves the frontend's assets.
Handles these kinds of URLs:
/assets/css/base.css /static/css/main.41064805.css
func (Frontend) MountHTTPHandlers ¶
func (f Frontend) MountHTTPHandlers()
func (*Frontend) RootHandler ¶
func (f *Frontend) RootHandler(w http.ResponseWriter, r *http.Request)
Serves the frontend's index.html.
Handles these kinds of URLs:
/ /index.html /* <catch all>
Click to show internal directories.
Click to hide internal directories.