(w http.ResponseWriter, r *http.Request)
| 349 | |
| 350 | |
| 351 | func CopyFileHandler(w http.ResponseWriter, r *http.Request) { |
| 352 | var selected_file []FILE_REQUEST |
| 353 | if err := json.NewDecoder(r.Body).Decode(&selected_file); err != nil { |
| 354 | http.Error(w, "[* HTTP 400]: invalid request body.", http.StatusBadRequest) |
| 355 | return |
| 356 | } |
| 357 | CopySelectedFile(selected_file) |
| 358 | } |
| 359 | |
| 360 | |
| 361 | // 移动文件. |
nothing calls this directly
no test coverage detected