Fix fe api paths

This commit is contained in:
2024-09-26 15:58:29 +02:00
parent fcbf4a689f
commit 148b3438b4

View File

@@ -27,7 +27,7 @@ export const fetchFileContent = async (filePath) => {
}; };
export const saveFileContent = async (filePath, content) => { export const saveFileContent = async (filePath, content) => {
const response = await fetch(`/api/v1/files/${filePath}`, { const response = await fetch(`${API_BASE_URL}/files/${filePath}`, {
method: 'POST', method: 'POST',
headers: { headers: {
'Content-Type': 'text/plain', 'Content-Type': 'text/plain',