|
|
|
@ -38,12 +38,8 @@ func sendClient() error { |
|
|
|
http.Handle("/static/", http.StripPrefix("/static/", |
|
|
|
http.FileServer(http.FS(web.StaticFs)))) |
|
|
|
http.HandleFunc("/download/", handler.FileServerHandler) |
|
|
|
// 下载压缩包
|
|
|
|
http.HandleFunc("/dlzip", handler.Downzip) |
|
|
|
// udp 传送文件
|
|
|
|
http.HandleFunc("/sendZip", handler.SendZip) |
|
|
|
// 已经打包的zip存放位置
|
|
|
|
http.HandleFunc("/files", handler.Dfiles) |
|
|
|
|
|
|
|
fmt.Println("send file to server...") |
|
|
|
|
|
|
|
|