From e10b2f639e375441ce4580c88f3b9d8124a96214 Mon Sep 17 00:00:00 2001 From: Ritchie Martori Date: Mon, 24 Jun 2013 12:04:27 -0700 Subject: [PATCH] Use the reqs body for constructing models --- lib/asteroid.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/asteroid.js b/lib/asteroid.js index ecf67f9e..4cb569bf 100644 --- a/lib/asteroid.js +++ b/lib/asteroid.js @@ -197,8 +197,8 @@ asteroid.createModel = function (name, properties, options) { }; ModelCtor.sharedCtor.accepts = [ - {arg: 'data', type: 'object'}, - {arg: 'id', type: 'any'} + {arg: 'data', type: 'object', http: {source: 'body'}}, + {arg: 'id', type: 'any', http: {source: 'url'}} ]; ModelCtor.sharedCtor.http = [