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 =====
|
// ===== FOLDERS =====
|
||||||
getFolders(projectId, parentId = null) {
|
getFolders(projectId, parentId = null) {
|
||||||
const query = parentId ? `?parentId=${parentId}` : '';
|
const params = new URLSearchParams({ projectId });
|
||||||
return this.get(`/projects/${projectId}/folders${query}`);
|
if (parentId) params.append('parentId', parentId);
|
||||||
|
return this.get(`/folders?${params.toString()}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
createFolder(data) {
|
createFolder(data) {
|
||||||
|
|||||||
Reference in New Issue
Block a user