diff options
| author | Jules Laplace <jules@okfoc.us> | 2016-04-14 20:32:08 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2016-04-14 20:32:08 -0400 |
| commit | c98560cca095ef27b909ac47baf843362bffb28d (patch) | |
| tree | 21b5d4f88d1c7416e41b60ce448bf6a5ef8073da /examples/lib/okexample/index.js | |
| parent | 21b7769c2a57d7e9c62318e911a45a6edebc0912 (diff) | |
OKWebhook module for receiving pushes from git
Diffstat (limited to 'examples/lib/okexample/index.js')
| -rw-r--r-- | examples/lib/okexample/index.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/lib/okexample/index.js b/examples/lib/okexample/index.js index b614697..04c5984 100644 --- a/examples/lib/okexample/index.js +++ b/examples/lib/okexample/index.js @@ -22,13 +22,14 @@ function OKExample (options) { if (!(this instanceof OKExample)) return new OKExample(options) options = options || {} if (!options.express) - throw new Error('Express not provided to OKDumpfm'); + throw new Error('Express not provided to OKExample'); if (!options.config) - throw new Error('Configuration not provided to OKDumpfm'); + throw new Error('Configuration not provided to OKExample'); 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) |
