From 8849a4b49a2d38fa5e6e47c7952958575a4553b7 Mon Sep 17 00:00:00 2001 From: Ritchie Martori Date: Tue, 20 May 2014 13:48:23 -0700 Subject: [PATCH] !fixup Remove additional remoting --- lib/scope.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/lib/scope.js b/lib/scope.js index ac14efc7..17ee0e47 100644 --- a/lib/scope.js +++ b/lib/scope.js @@ -118,12 +118,6 @@ function defineScope(cls, targetClass, name, params, methods) { f.apply(this[name], arguments); }; - fn.shared = true; - fn.http = {verb: 'get', path: '/' + name}; - fn.accepts = {arg: 'filter', type: 'object'}; - fn.description = 'Queries ' + name + ' of this model.'; - fn.returns = {arg: name, type: 'array', root: true}; - cls['__get__' + name] = fn; var fn_create = function () { @@ -131,22 +125,12 @@ function defineScope(cls, targetClass, name, params, methods) { f.apply(this[name], arguments); }; - fn_create.shared = true; - fn_create.http = {verb: 'post', path: '/' + name}; - fn_create.accepts = {arg: 'data', type: 'object', http: {source: 'body'}}; - fn_create.description = 'Creates a new instance in ' + name + ' of this model.'; - fn_create.returns = {arg: 'data', type: 'object', root: true}; - cls['__create__' + name] = fn_create; var fn_delete = function () { var f = this[name].destroyAll; f.apply(this[name], arguments); }; - fn_delete.shared = true; - fn_delete.http = {verb: 'delete', path: '/' + name}; - fn_delete.description = 'Deletes all ' + name + ' of this model.'; - fn_delete.returns = {arg: 'data', type: 'object', root: true}; cls['__delete__' + name] = fn_delete;