Skip to content

Commit 71bf166

Browse files
authored
Change endpoints. (#470)
Signed-off-by: AAJELLAL <[email protected]>
1 parent 333adb1 commit 71bf166

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/utils/rest-api.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ export function moveElementsToDirectory(elementsUuids, targetDirectoryUuid) {
236236
console.info('Moving elements to directory %s', targetDirectoryUuid);
237237

238238
const fetchParams =
239-
PREFIX_DIRECTORY_SERVER_QUERIES +
240-
`/v1/elements?targetDirectoryUuid=${targetDirectoryUuid}`;
239+
PREFIX_EXPLORE_SERVER_QUERIES +
240+
`/v1/explore/elements?targetDirectoryUuid=${targetDirectoryUuid}`;
241241
return backendFetch(fetchParams, {
242242
method: 'put',
243243
headers: {
@@ -251,7 +251,7 @@ export function moveElementsToDirectory(elementsUuids, targetDirectoryUuid) {
251251
export function updateElement(elementUuid, element) {
252252
console.info('Updating element info for ' + elementUuid);
253253
const updateElementUrl =
254-
PREFIX_DIRECTORY_SERVER_QUERIES + `/v1/elements/${elementUuid}`;
254+
PREFIX_EXPLORE_SERVER_QUERIES + `/v1/explore/elements/${elementUuid}`;
255255
return backendFetch(updateElementUrl, {
256256
method: 'put',
257257
headers: {
@@ -302,7 +302,7 @@ export function insertRootDirectory(directoryName, owner) {
302302
export function renameElement(elementUuid, newElementName) {
303303
console.info('Renaming element ' + elementUuid);
304304
const renameElementUrl =
305-
PREFIX_DIRECTORY_SERVER_QUERIES + `/v1/elements/${elementUuid}`;
305+
PREFIX_EXPLORE_SERVER_QUERIES + `/v1/explore/elements/${elementUuid}`;
306306
console.debug(renameElementUrl);
307307
return backendFetch(renameElementUrl, {
308308
method: 'put',

0 commit comments

Comments
 (0)