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