Resolve to index.html for settings page on localhost

Change-Id: I6ecd9aa62eb65c0a5b59114fcf9e760531538916
This commit is contained in:
Tao Zhou
2019-08-09 09:31:42 +02:00
parent 381031f73f
commit 00e92a89f8

View File

@@ -289,7 +289,7 @@ type server struct{}
// Any path prefixes that should resolve to index.html.
var (
fePaths = []string{"/q/", "/c/", "/p/", "/x/", "/dashboard/", "/admin/"}
fePaths = []string{"/q/", "/c/", "/p/", "/x/", "/dashboard/", "/admin/", "/settings/"}
issueNumRE = regexp.MustCompile(`^\/\d+\/?$`)
)