loopback/index.js

31 lines
853 B
JavaScript
Raw Normal View History

2016-05-03 22:50:21 +00:00
// Copyright IBM Corp. 2013,2016. All Rights Reserved.
// Node module: loopback
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
2016-06-07 14:48:28 +00:00
var SG = require('strong-globalize');
2016-08-03 23:01:33 +00:00
SG.SetRootDir(__dirname, { autonomousMsgLoading: 'all' });
2016-06-07 14:48:28 +00:00
2013-04-09 16:02:36 +00:00
/**
2013-07-16 17:49:25 +00:00
* loopback ~ public api
2013-04-09 16:02:36 +00:00
*/
2013-07-16 17:49:25 +00:00
var loopback = module.exports = require('./lib/loopback');
var datasourceJuggler = require('loopback-datasource-juggler');
2013-06-08 00:37:30 +00:00
/**
2013-06-11 16:01:44 +00:00
* Connectors
2013-06-08 00:37:30 +00:00
*/
2013-07-16 17:49:25 +00:00
loopback.Connector = require('./lib/connectors/base-connector');
loopback.Memory = require('./lib/connectors/memory');
loopback.Mail = require('./lib/connectors/mail');
loopback.Remote = require('loopback-connector-remote');
2013-06-24 22:22:25 +00:00
/**
* Types
*/
loopback.GeoPoint = require('loopback-datasource-juggler/lib/geo').GeoPoint;
loopback.ValidationError = loopback.Model.ValidationError;