diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-06-01 17:44:55 -0400 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-06-01 17:44:55 -0400 |
| commit | 261bb2c2f27aee276ebdfde8456f3f4edca37f76 (patch) | |
| tree | ac06e9208fe2760cb9c5d2f8f518bac6869ba009 /app | |
| parent | d0e5e9d3030424b2c1d0c7123b1cdcfcef5b6b6b (diff) | |
expose app to services
Diffstat (limited to 'app')
| -rw-r--r-- | app/index.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/index.js b/app/index.js index 899848e..8ffc7c8 100644 --- a/app/index.js +++ b/app/index.js @@ -108,30 +108,35 @@ function OKCMS(options) { switch (key) { case 's3': services.s3 = OKS3Service({ + app: app, express: express, s3: config, }); break case 'twitter': services.twitter = OKTwitterService({ + app: app, express: express, credentials: config, }); break case 'webhook': services.webhook = OKWebhookService({ + app: app, express: express, config: config, }); break case 'instagram': services.instagram = OKInstagramService({ + app: app, express: express, config: config, }); break default: services[key] = config.lib({ + app: app, express: express, config: config, meta: adminMeta, |
