summaryrefslogtreecommitdiff
path: root/app/node_modules/okrest/index.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-04-08 19:56:21 -0400
committerJules Laplace <jules@okfoc.us>2015-04-08 19:56:21 -0400
commitfe1ea91f73059c146369ccb2404fcaf6d03d2f4d (patch)
tree9b8c5e37821e147048e5d1ddbe5435af47716949 /app/node_modules/okrest/index.js
parent0c6d7edc0042464c8f05d38e6933186719dd259e (diff)
parent32f87fcb58466e0e311349f96751c18e2a2cd7ea (diff)
k
Diffstat (limited to 'app/node_modules/okrest/index.js')
-rw-r--r--app/node_modules/okrest/index.js20
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;