lib/handlers.js
function Handlers(server) {
  var self = this;
  this.server = server;

  //Store the most recently parsed swagger data for when only the handlers get re-attached.
  this.server.on('parsed', function(err, api, parser, basePath) {
    self.api = api;
    self.parser = parser;
    self.basePath = basePath;
    self.setupHandlers();
  });
}
function Handlers(server) {
  var self = this;
  this.server = server;

  //Store the most recently parsed swagger data for when only the handlers get re-attached.
  this.server.on('parsed', function(err, api, parser, basePath) {
    self.api = api;
    self.parser = parser;
    self.basePath = basePath;
    self.setupHandlers();
  });
}
function Handlers ( server ) { var self = this ; this . server = server ; //Store the most recently parsed swagger data for when only the handlers get re-attached. this . server . on ( 'parsed' , function ( err , api , parser , basePath ) { self . api = api ; self . parser = parser ; self . basePath = basePath ; self . setupHandlers ( ) ; } ) ; }
The Handler class, correlates the swagger paths with the handlers directory structure and adds the d
custom logic to the Express instance.
@param server
@constructor
The Handler class correlates the swagger paths with the handlers directory structure and adds the d custom logic to the Express instance .