const Facebook = require('../../lib/facebook');

module.exports.events = {
  handler: Facebook.getEvents(function(err, res) {
    return reply(res).type('application/json');
  })
};

const Facebook = require('../../lib/facebook');

module.exports.events = {
  handler: function (request, reply) {
    Facebook.getEvents(function(err, res) {
      return reply(res).type('application/json');
    });
  }
};

fix route