mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 20:27:23 +00:00
add domain parameter to createS3Storage and update related components
This commit is contained in:
@@ -448,8 +448,14 @@ class Network {
|
||||
}
|
||||
}
|
||||
|
||||
async createS3Storage(name: string, endPoint: string, accessKeyID: string,
|
||||
secretAccessKey: string, bucketName: string, maxSizeInMB: number): Promise<Response<any>> {
|
||||
async createS3Storage(
|
||||
name: string,
|
||||
endPoint: string,
|
||||
accessKeyID: string,
|
||||
secretAccessKey: string,
|
||||
bucketName: string,
|
||||
maxSizeInMB: number,
|
||||
domain: string): Promise<Response<any>> {
|
||||
try {
|
||||
const response = await axios.post(`${this.apiBaseUrl}/storage/s3`, {
|
||||
name,
|
||||
@@ -457,7 +463,8 @@ class Network {
|
||||
accessKeyID,
|
||||
secretAccessKey,
|
||||
bucketName,
|
||||
maxSizeInMB
|
||||
maxSizeInMB,
|
||||
domain
|
||||
});
|
||||
return response.data;
|
||||
} catch (e: any) {
|
||||
|
Reference in New Issue
Block a user