mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-08-10 04:58:12 +08:00
修改go版本为1.15
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
package admin
|
||||
|
||||
import (
|
||||
"embed"
|
||||
"net/http"
|
||||
"net/http/pprof"
|
||||
|
||||
@@ -10,8 +9,6 @@ import (
|
||||
"github.com/gorilla/mux"
|
||||
)
|
||||
|
||||
var UiPath embed.FS
|
||||
|
||||
// 开启服务
|
||||
func StartAdmin() {
|
||||
|
||||
@@ -21,7 +18,7 @@ func StartAdmin() {
|
||||
r.Handle("/", http.RedirectHandler("/ui/", http.StatusFound)).
|
||||
Name("static")
|
||||
r.PathPrefix("/ui/").Handler(http.FileServer(
|
||||
http.FS(UiPath),
|
||||
http.Dir(base.Cfg.UiPath),
|
||||
)).Name("static")
|
||||
|
||||
r.HandleFunc("/base/login", Login).Name("login")
|
||||
|
Reference in New Issue
Block a user