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:
Nicholas Thompson
2019-03-22 15:18:06 +02:00
committed by ncthompson
parent fd49891632
commit 92daf9191b
9 changed files with 6 additions and 5 deletions

View 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)
}