Fix service() & services()
This commit is contained in:
parent
3a420187e9
commit
9fe79dbfca
|
@ -67,6 +67,7 @@ app.modelBuilder = function () {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
app._models = [];
|
app._models = [];
|
||||||
|
app._services = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Expose a model.
|
* Expose a model.
|
||||||
|
@ -114,11 +115,11 @@ app.service = function (name, service) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get all exposed models.
|
* Get all exposed services.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
app.models = function () {
|
app.services = function () {
|
||||||
return this._models;
|
return this._services;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -152,3 +153,4 @@ app.handler = function (type) {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
app._handlers = {};
|
app._handlers = {};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue