Skip to content

Commit 5cdcb8e

Browse files
committed
update storage-api endpoints to the latest version
1 parent e9acad8 commit 5cdcb8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/storage/StorageApi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export class StorageApi {
177177
): Promise<{ data: { message: string } | null; error: Error | null }> {
178178
try {
179179
const data = await post(
180-
`${this.url}/object/rename`,
180+
`${this.url}/object/move`,
181181
{ bucketId, sourceKey: fromPath, destinationKey: toPath },
182182
{ headers: this.headers }
183183
)
@@ -308,7 +308,7 @@ export class StorageApi {
308308
): Promise<{ data: FileObject[] | null; error: Error | null }> {
309309
try {
310310
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 })
312312
return { data, error: null }
313313
} catch (error) {
314314
return { data: null, error }

0 commit comments

Comments
 (0)