lib/surface.js
function Surface(app, options) {
  if (!(this instanceof Surface)) {
    return new Surface(app, options);
  }

  this.conf = setting(options);

  this.middleware(app);
  context(app, this);
}
function Surface(app, options) {
  if (!(this instanceof Surface)) {
    return new Surface(app, options);
  }

  this.conf = setting(options);

  this.middleware(app);
  context(app, this);
}
function Surface ( app , options ) { if ( ! ( this instanceof Surface ) ) { return new Surface ( app , options ) ; } this . conf = setting ( options ) ; this . middleware ( app ) ; context ( app , this ) ; }
Surface Constructor.
@param {Object} app     koa().
@param {Object} options Config object.
@api public
Surface Constructor .