Documentation ¶
Overview ¶
Package handler define custom http handlers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VueServer ¶
func VueServer(fs http.FileSystem) http.Handler
VueServer create a http.Handler to serve vue dist. You can use it like this:
http.Handle("/", handler.VueServer(http.Dir("dist")))
It is useful when your project have HTML5 history mode.
https://router.vuejs.org/guide/essentials/history-mode.html#HTML5-Mode
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.