Removed go-bindata-assetfs and replaced with statik
This commit is contained in:
committed by
ncthompson
parent
790b05f90f
commit
206159cdea
@@ -83,13 +83,7 @@ func main() {
|
||||
|
||||
gui := webgui.NewWebGui(mk2)
|
||||
|
||||
rootFs := http.FileServer(frontend.BinaryFileSystem("root"))
|
||||
http.Handle("/", rootFs)
|
||||
jsFs := http.FileServer(frontend.BinaryFileSystem("js"))
|
||||
http.Handle("/js/", http.StripPrefix("/js", jsFs))
|
||||
cssFs := http.FileServer(frontend.BinaryFileSystem("css"))
|
||||
http.Handle("/css/", http.StripPrefix("/css", cssFs))
|
||||
|
||||
http.Handle("/", frontend.NewStatic())
|
||||
http.Handle("/ws", http.HandlerFunc(gui.ServeHub))
|
||||
http.Handle("/munin", http.HandlerFunc(gui.ServeMuninHTTP))
|
||||
http.Handle("/muninconfig", http.HandlerFunc(gui.ServeMuninConfigHTTP))
|
||||
|
||||
Reference in New Issue
Block a user