registry: export DataSource class
Expose the juggler's DataSource constructor as `loopback.DataSource`. The DataSource constructor is most useful to check for `instanceof DataSource`, but it also makes the loopback API more consistent, since the API is already exposing all pre-built Models.
This commit is contained in:
parent
09cc57c061
commit
a90e24c013
|
@ -318,6 +318,8 @@ registry.autoAttachModel = function(ModelCtor) {
|
|||
}
|
||||
};
|
||||
|
||||
registry.DataSource = DataSource;
|
||||
|
||||
/*
|
||||
* Core models
|
||||
* @private
|
||||
|
|
Loading…
Reference in New Issue