http.js
function(path, contract) {
  if (!contract) {
    contract = path;
    path = '/';
  }

  if (contract.handle) {
    this.root.use(path, (req, res, next) => {
      contract.handle(req, res, next)
    });
  } else {
    this.root.use(path, contract);
  }
  return this;
}
function(path, contract) {
  if (!contract) {
    contract = path;
    path = '/';
  }

  if (contract.handle) {
    this.root.use(path, (req, res, next) => {
      contract.handle(req, res, next)
    });
  } else {
    this.root.use(path, contract);
  }
  return this;
}
function ( path , contract ) { if ( ! contract ) { contract = path ; path = '/' ; } if ( contract . handle ) { this . root . use ( path , ( req , res , next ) => { contract . handle ( req , res , next ) } ) ; } else { this . root . use ( path , contract ) ; } return this ; }
use function will be added as the app use method
use function will be added as the app use method