Moved frontend package to be part of webgui in plugin format and renamed it to static for a better description of the package
This commit is contained in:
committed by
ncthompson
parent
fd49891632
commit
92daf9191b
17
plugins/webui/static/binary.go
Normal file
17
plugins/webui/static/binary.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package static
|
||||
|
||||
import (
|
||||
"github.com/rakyll/statik/fs"
|
||||
|
||||
"log"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// New exports the static part of the webgui that is served via statik
|
||||
func New() http.Handler {
|
||||
statikFs, err := fs.New()
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
return http.FileServer(statikFs)
|
||||
}
|
||||
Reference in New Issue
Block a user