@@ -236,8 +236,8 @@ export function moveElementsToDirectory(elementsUuids, targetDirectoryUuid) {
236
236
console . info ( 'Moving elements to directory %s' , targetDirectoryUuid ) ;
237
237
238
238
const fetchParams =
239
- PREFIX_DIRECTORY_SERVER_QUERIES +
240
- `/v1/elements?targetDirectoryUuid=${ targetDirectoryUuid } ` ;
239
+ PREFIX_EXPLORE_SERVER_QUERIES +
240
+ `/v1/explore/ elements?targetDirectoryUuid=${ targetDirectoryUuid } ` ;
241
241
return backendFetch ( fetchParams , {
242
242
method : 'put' ,
243
243
headers : {
@@ -251,7 +251,7 @@ export function moveElementsToDirectory(elementsUuids, targetDirectoryUuid) {
251
251
export function updateElement ( elementUuid , element ) {
252
252
console . info ( 'Updating element info for ' + elementUuid ) ;
253
253
const updateElementUrl =
254
- PREFIX_DIRECTORY_SERVER_QUERIES + `/v1/elements/${ elementUuid } ` ;
254
+ PREFIX_EXPLORE_SERVER_QUERIES + `/v1/explore /elements/${ elementUuid } ` ;
255
255
return backendFetch ( updateElementUrl , {
256
256
method : 'put' ,
257
257
headers : {
@@ -302,7 +302,7 @@ export function insertRootDirectory(directoryName, owner) {
302
302
export function renameElement ( elementUuid , newElementName ) {
303
303
console . info ( 'Renaming element ' + elementUuid ) ;
304
304
const renameElementUrl =
305
- PREFIX_DIRECTORY_SERVER_QUERIES + `/v1/elements/${ elementUuid } ` ;
305
+ PREFIX_EXPLORE_SERVER_QUERIES + `/v1/explore /elements/${ elementUuid } ` ;
306
306
console . debug ( renameElementUrl ) ;
307
307
return backendFetch ( renameElementUrl , {
308
308
method : 'put' ,
0 commit comments