(projectId: string, serverId: string, file: File, path: string)
| 119 | } |
| 120 | |
| 121 | export async function uploadCliFile(projectId: string, serverId: string, file: File, path: string) { |
| 122 | const formData = new FormData() |
| 123 | formData.append('file', file) |
| 124 | const response = await apiClient.post(`/api/v1/projects/${projectId}/cli/servers/${serverId}/upload`, formData, { |
| 125 | params: { path }, |
| 126 | }) |
| 127 | return response.data as { success: boolean } |
| 128 | } |
| 129 | |
| 130 | export async function downloadCliFile(projectId: string, serverId: string, path: string) { |
| 131 | const response = await apiClient.get(`/api/v1/projects/${projectId}/cli/servers/${serverId}/download`, { |
no test coverage detected