From 9b84cf8bc08a4a3c37296ec7527c2d4e42c5e7a6 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Mon, 14 Oct 2019 23:53:41 +0200 Subject: [PATCH] fix(core): update --- ts/smartbucket.classes.smartbucket.ts | 12 +++++++++++- ts/smartbucket.plugins.ts | 4 ++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/ts/smartbucket.classes.smartbucket.ts b/ts/smartbucket.classes.smartbucket.ts index eca16bf..4e39600 100644 --- a/ts/smartbucket.classes.smartbucket.ts +++ b/ts/smartbucket.classes.smartbucket.ts @@ -9,6 +9,14 @@ export interface ISmartBucketConfig { export class SmartBucket { public config: ISmartBucketConfig; + public minioClient = new plugins.minio.Client({ + endPoint: 'ams3.digitaloceanspaces.com', + port: 9000, + useSSL: true, + accessKey: 'Q3AM3UQ867SPQQA43P2F', + secretKey: 'zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG' + }); + /** * the constructor of SmartBucket */ @@ -19,5 +27,7 @@ export class SmartBucket { /** * initializes the Smartbucket */ - public async init() {} + public async init() { + + } } diff --git a/ts/smartbucket.plugins.ts b/ts/smartbucket.plugins.ts index 67a6a5f..bee1885 100644 --- a/ts/smartbucket.plugins.ts +++ b/ts/smartbucket.plugins.ts @@ -4,3 +4,7 @@ export { smartpromise }; // third party scope import * as minio from 'minio'; + +export { + minio +};