diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-01-23 14:46:44 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-01-23 14:46:44 -0500 |
| commit | 74fb7a313b4d9ad3517e97133febff9cada96fe0 (patch) | |
| tree | 3328866297c8c6087ea2cec962a9600510ff42a0 /server/lib/webhook/index.js | |
| parent | e0debd761bc24cd42f4140d2b6cc32a4271fe975 (diff) | |
handle subscribe and payment events with webhook
Diffstat (limited to 'server/lib/webhook/index.js')
| -rw-r--r-- | server/lib/webhook/index.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/lib/webhook/index.js b/server/lib/webhook/index.js index 7dd68e6..11419c2 100644 --- a/server/lib/webhook/index.js +++ b/server/lib/webhook/index.js @@ -13,6 +13,8 @@ var http = require('http'), path = require('path'), mongoose = require('mongoose'); +var webhook = require('./webhook'); + var app = express() var server var DATABASE_URI = process.env.MONGOLAB_URI || ('mongodb://' + config.databaseHost + '/vvalls') @@ -36,7 +38,7 @@ site.ready = function(){ }); app.get('/', function(req,res){ res.send('HI THERE') }) - app.get('/subscribe/webhook', require('./webhook').webhook); + webhook.route(app) } site.init() |
