fix master static resource display problem

This commit is contained in:
Chris Lu
2018-10-12 00:05:15 -07:00
parent 556382ff5f
commit 4af6b4eb0e
2 changed files with 7 additions and 0 deletions

View File

@@ -69,6 +69,7 @@ func NewMasterServer(r *mux.Router, port int, metaFolder string,
ms.guard = security.NewGuard(whiteList, secureKey)
handleStaticResources2(r)
r.HandleFunc("/", ms.uiStatusHandler)
r.HandleFunc("/ui/index.html", ms.uiStatusHandler)
r.HandleFunc("/dir/assign", ms.proxyToLeader(ms.guard.WhiteList(ms.dirAssignHandler)))