config.js
455 Bytes
var express = require('express');
var payRoll = require('../json/payRoll.json');
exports = module.exports = function (IoC, policies, settings) {
var app = this;
var router = express.Router();
var controller = IoC.create('controllers/config');
router.get(
'/getHost',
controller.getHost
);
app.use(settings.prefix + 'config', router);
}
exports['@require'] = ['$container', 'policies', 'igloo/settings'];
exports['@singleton'] = true;