From 148b3438b4fb6a453c80ae6a8d0016d9c4cbdc47 Mon Sep 17 00:00:00 2001 From: LordMathis Date: Thu, 26 Sep 2024 15:58:29 +0200 Subject: [PATCH] Fix fe api paths --- frontend/src/services/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/services/api.js b/frontend/src/services/api.js index 3febe66..74eeaab 100644 --- a/frontend/src/services/api.js +++ b/frontend/src/services/api.js @@ -27,7 +27,7 @@ export const fetchFileContent = async (filePath) => { }; 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', headers: { 'Content-Type': 'text/plain',