diff options
| author | Julie Lala <jules@okfoc.us> | 2015-01-28 01:39:28 -0500 |
|---|---|---|
| committer | Julie Lala <jules@okfoc.us> | 2015-01-28 01:39:28 -0500 |
| commit | 3059c3203d2cec4e2e745be8c21c6d3fbddb0c14 (patch) | |
| tree | 3aa4191240ebd2713041e34259564d1feea07885 /server/lib/webhook/webhook.js | |
| parent | 97781055569bdc3d7c6c6d913452ba588f50cfb5 (diff) | |
rigging EditSubscriptionModal
Diffstat (limited to 'server/lib/webhook/webhook.js')
| -rw-r--r-- | server/lib/webhook/webhook.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/server/lib/webhook/webhook.js b/server/lib/webhook/webhook.js index e9a7925..4f23d0b 100644 --- a/server/lib/webhook/webhook.js +++ b/server/lib/webhook/webhook.js @@ -134,7 +134,21 @@ var subscribe = module.exports = { }); }, + list: function(req, res){ + recurly.subscriptions.listByAccount(req.params.id, function(data){ + if (data.data != 404) { + res.json(data) + return + } + else { + res.json(data) + return + } + }) + }, + route: function(app){ app.post('/subscribe/webhook', subscribe.handle); + app.get('/subscribe/list/:id', subscribe.list); }, } |
