summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.js11
-rw-r--r--lib/okpush/index.js2
-rw-r--r--package.json1
3 files changed, 12 insertions, 2 deletions
diff --git a/index.js b/index.js
index 9fb30988..9b8bdc03 100644
--- a/index.js
+++ b/index.js
@@ -64,6 +64,13 @@ var app = okcms.createApp({
FittingCodes: {type: 'text'},
BackgroundIsGray: {type: 'enum', options: ["true","false"] },
ClosedStoreImages: {type: 'captioned-image-list'},
+ // modal
+ showModal: {type: 'flag' },
+ modalTitle: {type: 'string'},
+ modalTaglineStyle: {type: 'enum', options: ["black","red","blue"] },
+ modalTaglinePosition: {type: 'enum', options: ["hidden","top","bottom"] },
+ modalContent: {type: 'text'},
+ modalTagline: {type: 'string'},
},
},
@@ -128,7 +135,9 @@ var app = okcms.createApp({
},
}
-}).listen(port)
+})
+app.listen(port)
+module.exports = app
console.log('Server listening at port ' + port + '...');
diff --git a/lib/okpush/index.js b/lib/okpush/index.js
index 9835885b..a92ef97f 100644
--- a/lib/okpush/index.js
+++ b/lib/okpush/index.js
@@ -104,7 +104,7 @@ function OKPush (options) {
})
router.get('/list', function(req, res){
- db.getAllTokens(req.query.channel || 'hub', function(err, hubz){
+ db.getAllIOSTokens(req.query.channel || 'hub', function(err, hubz){
res.json(hubz)
})
})
diff --git a/package.json b/package.json
index 3ea7fcf0..e0b0488b 100644
--- a/package.json
+++ b/package.json
@@ -18,6 +18,7 @@
"homepage": "https://github.com/okfocus/stone-island",
"dependencies": {
"apn": "^2.1.3",
+ "get-routes": "^2.0.0",
"object-assign": "^2.0.0",
"okcms": "git+ssh://git@ghghgh.us/~/okcms.git#v0.2.5"
}