|
|
@ -37,7 +37,6 @@ func sendClient() error { |
|
|
// 加载静态资源
|
|
|
// 加载静态资源
|
|
|
http.Handle("/static/", http.StripPrefix("/static/", |
|
|
http.Handle("/static/", http.StripPrefix("/static/", |
|
|
http.FileServer(http.FS(web.StaticFs)))) |
|
|
http.FileServer(http.FS(web.StaticFs)))) |
|
|
http.HandleFunc("/download/", handler.FileServerHandler) |
|
|
|
|
|
// 文件更新包
|
|
|
// 文件更新包
|
|
|
http.HandleFunc("/up", handler.UpServer) |
|
|
http.HandleFunc("/up", handler.UpServer) |
|
|
// 传送单文件
|
|
|
// 传送单文件
|
|
|
|