Ivan Socolsky
9 years ago
No known key found for this signature in database
GPG Key ID: FAECE6A05FAA4F56
2 changed files with
19 additions and
11 deletions
-
lib/expressapp.js
-
package.json
|
|
@ -5,7 +5,8 @@ var async = require('async'); |
|
|
|
var log = require('npmlog'); |
|
|
|
|
|
|
|
var express = require('express'); |
|
|
|
var bodyParser = require('body-parser') |
|
|
|
var bodyParser = require('body-parser'); |
|
|
|
var compression = require('compression'); |
|
|
|
|
|
|
|
var WalletService = require('./server'); |
|
|
|
var Stats = require('./stats'); |
|
|
@ -29,6 +30,8 @@ var ExpressApp = function() { |
|
|
|
ExpressApp.prototype.start = function(opts, cb) { |
|
|
|
opts = opts || {}; |
|
|
|
|
|
|
|
this.app.use(compression()); |
|
|
|
|
|
|
|
this.app.use(function(req, res, next) { |
|
|
|
res.setHeader('Access-Control-Allow-Origin', '*'); |
|
|
|
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, OPTIONS, PUT, DELETE'); |
|
|
|
|
|
@ -22,6 +22,7 @@ |
|
|
|
"async": "^0.9.2", |
|
|
|
"bitcore-lib": "^0.13.7", |
|
|
|
"body-parser": "^1.11.0", |
|
|
|
"compression": "^1.6.2", |
|
|
|
"coveralls": "^2.11.2", |
|
|
|
"email-validator": "^1.0.1", |
|
|
|
"express": "^4.10.0", |
|
|
@ -66,14 +67,18 @@ |
|
|
|
"coveralls": "./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage" |
|
|
|
}, |
|
|
|
"bitcoreNode": "./bitcorenode", |
|
|
|
"contributors": [{ |
|
|
|
"contributors": [ |
|
|
|
{ |
|
|
|
"name": "Braydon Fuller", |
|
|
|
"email": "braydon@bitpay.com" |
|
|
|
}, { |
|
|
|
}, |
|
|
|
{ |
|
|
|
"name": "Ivan Socolsky", |
|
|
|
"email": "ivan@bitpay.com" |
|
|
|
}, { |
|
|
|
}, |
|
|
|
{ |
|
|
|
"name": "Matias Alejo Garcia", |
|
|
|
"email": "ematiu@gmail.com" |
|
|
|
}] |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|