'use strict';

// Load configuration and initialize server
var anyfetchHydrater = require('anyfetch-hydrater');

var config = require('./config/configuration.js');

var serverConfig = {
  concurrency: config.concurrency,
  hydrater_function: './lib/index.js'
};

var server = anyfetchHydrater.createServer(serverConfig);

// Expose the server
module.exports = server;

'use strict';

// Load configuration and initialize server
var anyfetchHydrater = require('anyfetch-hydrater');

var config = require('./config/configuration.js');

var serverConfig = {
  concurrency: config.concurrency,
  hydrater_function: __diname + '/lib/index.js'
};

var server = anyfetchHydrater.createServer(serverConfig);

// Expose the server
module.exports = server;

fix relative directory