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 = [
|
ModelCtor.sharedCtor.accepts = [
|
||||||
{arg: 'data', type: 'object'},
|
{arg: 'data', type: 'object', http: {source: 'body'}},
|
||||||
{arg: 'id', type: 'any'}
|
{arg: 'id', type: 'any', http: {source: 'url'}}
|
||||||
];
|
];
|
||||||
|
|
||||||
ModelCtor.sharedCtor.http = [
|
ModelCtor.sharedCtor.http = [
|
||||||
|
|
Loading…
Reference in New Issue