feat(s3,web-ui): add S3 deletePrefix and getObjectUrl endpoints and add context menus in UI for S3 and Mongo views
This commit is contained in:
@@ -128,6 +128,22 @@ export class ApiService {
|
||||
return result.success;
|
||||
}
|
||||
|
||||
async deletePrefix(bucketName: string, prefix: string): Promise<boolean> {
|
||||
const result = await this.request<
|
||||
{ bucketName: string; prefix: string },
|
||||
{ success: boolean }
|
||||
>('deletePrefix', { bucketName, prefix });
|
||||
return result.success;
|
||||
}
|
||||
|
||||
async getObjectUrl(bucketName: string, key: string): Promise<string> {
|
||||
const result = await this.request<
|
||||
{ bucketName: string; key: string },
|
||||
{ url: string }
|
||||
>('getObjectUrl', { bucketName, key });
|
||||
return result.url;
|
||||
}
|
||||
|
||||
async copyObject(
|
||||
sourceBucket: string,
|
||||
sourceKey: string,
|
||||
|
||||
Reference in New Issue
Block a user