diff options
| author | Sean Fridman <fridman@mail.sfsu.edu> | 2015-04-08 15:07:50 -0400 |
|---|---|---|
| committer | Sean Fridman <fridman@mail.sfsu.edu> | 2015-04-08 15:07:50 -0400 |
| commit | 5d676437f64791b435d7554d9ec4f4628d0abcc3 (patch) | |
| tree | aeafdb4d60a55e49cf098a31d8002a72df908025 /app | |
| parent | 2a4ede6507f55e492736c4b82a139ac5d2e2eec0 (diff) | |
Remove unused REST endpoint module
Diffstat (limited to 'app')
| -rw-r--r-- | app/index.js | 5 | ||||
| -rw-r--r-- | app/node_modules/okrest/index.js | 20 | ||||
| -rw-r--r-- | app/node_modules/okrest/package.json | 11 |
3 files changed, 1 insertions, 35 deletions
diff --git a/app/index.js b/app/index.js index ca09079..0e83363 100644 --- a/app/index.js +++ b/app/index.js @@ -10,7 +10,6 @@ var OKDB = require('okdb'); var OKResource = require('okresource') var OKTemplate = require('oktemplate'); var OKServer = require('okserver'); -var OKRestEndpoint = require('okrest'); var OKSchema = require('okschema'); /** @@ -202,8 +201,6 @@ module.exports = { OKResource: OKResource, - OKView: OKView, - - OKRestEndpoint: OKRestEndpoint + OKView: OKView }; diff --git a/app/node_modules/okrest/index.js b/app/node_modules/okrest/index.js deleted file mode 100644 index 169626d..0000000 --- a/app/node_modules/okrest/index.js +++ /dev/null @@ -1,20 +0,0 @@ -var OKView = require('okview'); - -/** - * OKRestEndpoint! - * Takes a resources and creates a CRUD endpoint. - */ -function OKRestEndpoint(resource, options) { - if (!(this instanceof OKRestEndpoint)) return new OKRestEndpoint(resource, options); - options = options || {}; - this._resource = resource; -} - -OKRestEndpoint.prototype.middleware = function() { - var self = this; - return function handleREST(req, res, next) { - res.send(self._resource.name); - }; -} - -module.exports = OKRestEndpoint; diff --git a/app/node_modules/okrest/package.json b/app/node_modules/okrest/package.json deleted file mode 100644 index 462c890..0000000 --- a/app/node_modules/okrest/package.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "name": "okrest", - "version": "1.0.0", - "description": "nice", - "main": "index.js", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "author": "OKFocus", - "license": "None" -} |
