Use the reqs body for constructing models
This commit is contained in:
parent
130b596786
commit
e10b2f639e
|
@ -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 = [
|
||||
|
|
Loading…
Reference in New Issue