Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "volos-s3", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Volos AWS S3 Connector", | ||
@@ -5,0 +5,0 @@ "main": "s3Connector.js", |
@@ -61,12 +61,13 @@ # Volos S3 connector | ||
var svr = http.createServer(function (req, resp) { | ||
s3ConnectorObject.dispatchRequest(req, resp); | ||
}); | ||
svr.listen(9089, function () { | ||
var s3ConnectorObject = new s3Connector.S3Connector({"profile": profile, "configuration": configuration}); | ||
s3ConnectorObject.initializePaths(configuration.restMap); | ||
console.log(s3ConnectorObject.applicationName + ' node server is listening'); | ||
}); | ||
var svr = http.createServer(function (req, resp) { | ||
s3ConnectorObject.dispatchRequest(req, resp); | ||
}); | ||
svr.listen(9089, function () { | ||
s3ConnectorObject.initializePaths(configuration.restMap); | ||
console.log(s3ConnectorObject.applicationName + ' node server is listening'); | ||
}); | ||
``` | ||
@@ -73,0 +74,0 @@ |
@@ -10,2 +10,3 @@ var assert = require('assert'); | ||
var S3Connector = function (options) { | ||
this.doParseBody = false; // just pass on any body of any content-type to s3 | ||
this.applicationName = 'volos-s3'; | ||
@@ -38,2 +39,3 @@ this.configuration = options.configuration; | ||
} | ||
this.supplyHelpObject = function () { | ||
@@ -40,0 +42,0 @@ return(this.configuration.restMap); |
25662
9
390
226