handlers/s3/add.js (view raw)
1const store = require("../../libs/config/store");
2
3const addS3 = params => {
4 const { s3Name, host, accessKey, secretKey, useSSL, port, bucket } = params;
5 console.log(params);
6 store("s3", s3Name, { host, accessKey, secretKey, useSSL, port, bucket });
7 console.log(`S3 server ${s3Name} saved in config`);
8};
9
10module.exports = addS3;