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/node_modules/okrest/index.js | |
| parent | 2a4ede6507f55e492736c4b82a139ac5d2e2eec0 (diff) | |
Remove unused REST endpoint module
Diffstat (limited to 'app/node_modules/okrest/index.js')
| -rw-r--r-- | app/node_modules/okrest/index.js | 20 |
1 files changed, 0 insertions, 20 deletions
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; |
