diff options
Diffstat (limited to 'examples/index.js')
| -rw-r--r-- | examples/index.js | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/examples/index.js b/examples/index.js index ad57a09..357ff60 100644 --- a/examples/index.js +++ b/examples/index.js @@ -50,15 +50,6 @@ var app = okcms.createApp({ image: {type: 'image'}, images: {type: 'triple-captioned-image-list'}, }, -// card: { -// id: {type: 'string', hidden: true}, -// title: {type: 'string'}, -// stack: {type: 'foreign-key', key: 'stack'}, -// }, -// stack: { -// id: {type: 'string', hidden: true}, -// title: {type: 'string'}, -// } }, resources: [ @@ -67,8 +58,6 @@ var app = okcms.createApp({ { type: 'bread' }, { type: 'test' }, { type: 'flour' }, -// { type: 'card' }, -// { type: 'stack' }, ], services: { @@ -95,7 +84,26 @@ var app = okcms.createApp({ dumpfm: { lib: require("./lib/okdumpfm"), - } + }, + + push: { + lib: require("./lib/okpush"), + mongodbUrl: "mongodb://localhost/okpush_example", + apn: { + connection: { + gateway: "gateway.sandbox.push.apple.com", + cert: "/path/to/cert.pem", + key: "/path/to/key.pem" + }, + feedback: { + address: "feedback.sandbox.push.apple.com", + cert: "/path/to/cert.pem", + key: "/path/to/key.pem", + interval: 43200, + batchFeedback: true + } + } + }, }, views: { |
