From ddc5b4589e8d3e563068d97a3eaf4217403339cd Mon Sep 17 00:00:00 2001 From: BinHong Lee Date: Tue, 31 Oct 2017 21:44:02 -0700 Subject: [PATCH] Changed app.listen() for testing to deployment --- index.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/index.js b/index.js index f2d4b5d..82793a5 100644 --- a/index.js +++ b/index.js @@ -7,17 +7,17 @@ var MIXMAX_API_KEY var app = express() var input -app.use(bodyParser.json({ - limit: '100mb', - type: 'application/json' -})) - app.use(function (req, res, next) { res.header('Access-Control-Allow-Origin', '*') res.header('Access-Control-Allow-Headers', 'Origin, X-Requested-With, Content-Type, Accept') next() }) +app.use(bodyParser.json({ + limit: '100mb', + type: 'application/json' +})) + app.get('/help', function (req, res) { res.send('https://github.com/binhonglee/Breakups') }) @@ -67,8 +67,8 @@ app.post('/emailPaymentChain', function (req, res) { res.json(emails) }) -app.listen(5000) -// app.listen(process.env.PORT) +// app.listen(5000) +app.listen(process.env.PORT) function total (input) { var total = 0