aboutsummaryrefslogtreecommitdiff
path: root/weed/server/volume_server.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2018-10-07 10:54:05 -0700
committerChris Lu <chris.lu@gmail.com>2018-10-07 10:54:05 -0700
commitfffbc2d4906ab5b94ec40946a13a108a3efaeff9 (patch)
treef02fe8073f1309f5dd176910fc60628df47fc047 /weed/server/volume_server.go
parenta5b5887efce03252b0f64b9918e81a0ea59beac7 (diff)
downloadseaweedfs-fffbc2d4906ab5b94ec40946a13a108a3efaeff9.tar.xz
seaweedfs-fffbc2d4906ab5b94ec40946a13a108a3efaeff9.zip
embed static resources via statik
Diffstat (limited to 'weed/server/volume_server.go')
-rw-r--r--weed/server/volume_server.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/server/volume_server.go b/weed/server/volume_server.go
index 037fca2c2..01c49da6d 100644
--- a/weed/server/volume_server.go
+++ b/weed/server/volume_server.go
@@ -43,6 +43,7 @@ func NewVolumeServer(adminMux, publicMux *http.ServeMux, ip string,
vs.guard = security.NewGuard(whiteList, "")
+ handleStaticResources(adminMux)
adminMux.HandleFunc("/ui/index.html", vs.uiStatusHandler)
adminMux.HandleFunc("/status", vs.guard.WhiteList(vs.statusHandler))
adminMux.HandleFunc("/admin/assign_volume", vs.guard.WhiteList(vs.assignVolumeHandler))
@@ -64,7 +65,7 @@ func NewVolumeServer(adminMux, publicMux *http.ServeMux, ip string,
adminMux.HandleFunc("/", vs.privateStoreHandler)
if publicMux != adminMux {
// separated admin and public port
- publicMux.HandleFunc("/favicon.ico", faviconHandler)
+ handleStaticResources(publicMux)
publicMux.HandleFunc("/", vs.publicReadOnlyHandler)
}