This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Orbiter = require('../../lib/orbiter').Orbiter; | |
module.exports = function (sails) { | |
return { | |
initialize: function (cb) { | |
// Create a new instance of the service. | |
sails.services.Orbiter = new Orbiter(sails.config.orbiter); | |
// Globally expose service. | |
global.Orbiter = sails.services.Orbiter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Orbiter = require('../../lib/orbiter').Orbiter; | |
module.exports = new Orbiter(sails.config.orbiter); |