Browse Source

map volume "GET /" to uiStatusHandler for convenience

pull/839/head
bingoohuang 7 years ago
parent
commit
2011ffd0ee
  1. 5
      weed/server/volume_server_handlers.go

5
weed/server/volume_server_handlers.go

@ -22,6 +22,11 @@ security settings:
*/
func (vs *VolumeServer) privateStoreHandler(w http.ResponseWriter, r *http.Request) {
if r.Method == "GET" && r.URL.Path == "/" { // for convenience to /ui/index.html
vs.uiStatusHandler(w, r)
return
}
switch r.Method {
case "GET", "HEAD":
stats.ReadRequest()

Loading…
Cancel
Save