Merge pull request #15 from STRML/master
Fix up loopback.rest() model definition hack.
This commit is contained in:
commit
b6ef248b76
|
@ -88,10 +88,7 @@ var routeHelper = module.exports = {
|
||||||
if (firstReturn.type === 'object') {
|
if (firstReturn.type === 'object') {
|
||||||
firstReturn.type = classDef.name;
|
firstReturn.type = classDef.name;
|
||||||
} else if (firstReturn.type === 'array') {
|
} else if (firstReturn.type === 'array') {
|
||||||
firstReturn.type = 'array';
|
firstReturn.type = [classDef.name];
|
||||||
firstReturn.items = {
|
|
||||||
'$ref': classDef.name
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue