From 435d789045334bed4459d432e9aaf5055d4f887a Mon Sep 17 00:00:00 2001 From: shaoying Date: Sun, 3 May 2020 21:58:40 +0800 Subject: [PATCH] opt index --- base/web/web.go | 6 +++--- go.sum | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/base/web/web.go b/base/web/web.go index a313bee7..5fb217b6 100644 --- a/base/web/web.go +++ b/base/web/web.go @@ -369,9 +369,9 @@ func (web *Frame) ServeHTTP(w http.ResponseWriter, r *http.Request) { } else if r.URL.Path == "/share" && r.Method == "GET" { http.ServeFile(w, r, m.Conf(ice.WEB_SERVE, "meta.page.share")) - } else if r.URL.Path == "/" && r.Method == "GET" { - http.ServeFile(w, r, m.Conf(ice.WEB_SERVE, "meta.page.index")) - + // } else if r.URL.Path == "/" && r.Method == "GET" { + // http.ServeFile(w, r, m.Conf(ice.WEB_SERVE, "meta.page.index")) + // } else { web.ServeMux.ServeHTTP(w, r) } diff --git a/go.sum b/go.sum index 6c8dcca8..50d8aef0 100644 --- a/go.sum +++ b/go.sum @@ -2,5 +2,7 @@ github.com/gorilla/websocket v1.4.1 h1:q7AeDBpnBk8AogcD4DSag/Ukw/KV+YhzLj2bP5HvK github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/shylinux/toolkits v0.1.4 h1:GW7rRFOSww56x+rUfH0/tho3+FaErxz5+5RwlA8oWnk= github.com/shylinux/toolkits v0.1.4/go.mod h1:Y68Ot6xOmo1bun67YvqC3chDGeU2gDxtsUnvVDGJm4g= +github.com/shylinux/toolkits v0.1.5 h1:rGLsEGuPzuib/sOZXCbF8D+JGjqeQJ+a1rX/G6/sc8w= +github.com/shylinux/toolkits v0.1.5/go.mod h1:Y68Ot6xOmo1bun67YvqC3chDGeU2gDxtsUnvVDGJm4g= github.com/skip2/go-qrcode v0.0.0-20191027152451-9434209cb086 h1:RYiqpb2ii2Z6J4x0wxK46kvPBbFuZcdhS+CIztmYgZs= github.com/skip2/go-qrcode v0.0.0-20191027152451-9434209cb086/go.mod h1:PLPIyL7ikehBD1OAjmKKiOEhbvWyHGaNDjquXMcYABo=