(relative_path,callback)
| 22 | } |
| 23 | |
| 24 | export const DownloadFile = (relative_path,callback) => { |
| 25 | const filename = relative_path.split("/").pop() |
| 26 | axios.get(UrlBase + `/file/download/${filename}?path=${relative_path}`).then((response) => { |
| 27 | callback(response); |
| 28 | }); |
| 29 | } |
| 30 | |
| 31 | export const PreivewFile = (relative_path,callback) => { |
| 32 | axios.get(UrlBase + `/file/preview?path=${relative_path}`).then((response) => { |
nothing calls this directly
no outgoing calls
no test coverage detected