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:
Miroslav Bajtoš 2014-06-09 16:25:35 +02:00
parent 09cc57c061
commit a90e24c013
1 changed files with 2 additions and 0 deletions

View File

@ -318,6 +318,8 @@ registry.autoAttachModel = function(ModelCtor) {
}
};
registry.DataSource = DataSource;
/*
* Core models
* @private