mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-06 16:04:23 +00:00
Fix fe api paths
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user