'use strict'

const Koa = require('koa-plus')

class App extends Koa {
  /**
   * Creates an `App` instance
   *
   * @param {Object} config - Configuration for the app
   * @returns {App} - An `App` instance
   */
  constructor (config) {
    config = config || {}

    super(config)

    this.context.config = config
  }

}

module.exports = App

'use strict'

const Koa = require('koa-plus')
const Config = require('./config')

class App extends Koa {
  /**
   * Creates an `App` instance
   *
   * @param {Object} config - Configuration for the app
   * @returns {App} - An `App` instance
   */
  constructor (config) {
    let _config = new Config(config)

    super(_config)

    this.context.config = _config
  }

}

module.exports = App

Build hello-config object from config arg
Build hello-config object from config arg
