@ -1,6 +1,6 @@
|
||||
import {v4 as uuidv4} from 'uuid';
|
||||
|
||||
import StorageServiceApi from './StorageServiceAPI';
|
||||
import storageApi from './StorageServiceAPI';
|
||||
|
||||
/**
|
||||
* @interface StoreListElement
|
||||
@ -26,7 +26,7 @@ class StorageListApi {
|
||||
/**
|
||||
* @type {StorageServiceApi}
|
||||
*/
|
||||
this.api = new StorageServiceApi();
|
||||
this.api = storageApi;
|
||||
this.api.create({key, description, author, service_name, value: []});
|
||||
/**
|
||||
* @type {Object}
|
||||
|
||||
@ -68,5 +68,6 @@ class StorageServiceApi {
|
||||
return data;
|
||||
}
|
||||
}
|
||||
const storageApi = new StorageServiceApi();
|
||||
|
||||
export default StorageServiceApi;
|
||||
export default storageApi;
|
||||
|
||||
Reference in New Issue
Block a user