fix: use correct folders endpoint /folders?projectId=X instead of /projects/:id/folders
This commit is contained in:
@@ -143,8 +143,9 @@ class ApiClient {
|
||||
|
||||
// ===== FOLDERS =====
|
||||
getFolders(projectId, parentId = null) {
|
||||
const query = parentId ? `?parentId=${parentId}` : '';
|
||||
return this.get(`/projects/${projectId}/folders${query}`);
|
||||
const params = new URLSearchParams({ projectId });
|
||||
if (parentId) params.append('parentId', parentId);
|
||||
return this.get(`/folders?${params.toString()}`);
|
||||
}
|
||||
|
||||
createFolder(data) {
|
||||
|
||||
Reference in New Issue
Block a user