File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ export class StorageApi {
177
177
) : Promise < { data : { message : string } | null ; error : Error | null } > {
178
178
try {
179
179
const data = await post (
180
- `${ this . url } /object/rename ` ,
180
+ `${ this . url } /object/move ` ,
181
181
{ bucketId, sourceKey : fromPath , destinationKey : toPath } ,
182
182
{ headers : this . headers }
183
183
)
@@ -308,7 +308,7 @@ export class StorageApi {
308
308
) : Promise < { data : FileObject [ ] | null ; error : Error | null } > {
309
309
try {
310
310
const body = { ...DEFAULT_SEARCH_OPTIONS , ...options , prefix : path || '' }
311
- const data = await post ( `${ this . url } /search /${ bucketId } ` , body , { headers : this . headers } )
311
+ const data = await post ( `${ this . url } /object/list /${ bucketId } ` , body , { headers : this . headers } )
312
312
return { data, error : null }
313
313
} catch ( error ) {
314
314
return { data : null , error }
You can’t perform that action at this time.
0 commit comments