/** */ var apn = require('apn'); function OKPush (options) { if (!(this instanceof OKPush)) return new OKPush(options) options = options || {} if (!options.express) throw new Error('Express not provided to OKPush'); if (!options.config) throw new Error('Configuration not provided to OKPush'); var express = options.express var router = express.Router() var config = options.config var db = options.db router.get('*', function (req, res) { res.send(config.stuff) }) router.post('*', function (req, res) { throw new Error('OKPush POST requests not implemented') }) this._router = router } OKExample.prototype.middleware = function () { return this._router } module.exports = OKExample