(relativePath)
| 44 | } |
| 45 | |
| 46 | export async function fetchConfigContent(relativePath) { |
| 47 | if (!relativePath) throw new Error('Relative path is required for fetchConfigContent'); |
| 48 | const response = await fetch(`${API_BASE_URL}/configs/content/${encodeURIComponent(relativePath)}`); |
| 49 | return handleApiResponse(response); |
| 50 | } |
| 51 | |
| 52 | export async function saveConfigContent(relativePath, content) { |
| 53 | if (!relativePath) throw new Error('Relative path is required for saveConfigContent'); |
no test coverage detected