/**
 * External imports
 */
import koa from 'koa';
import route from 'koa-route';
import libdebug from 'debug';

// create debug logger
const debug = libdebug('lgho:root');

/**
 * Routes
 */
function* root() {
  this.response.status = 200;
}

export default function create(options = {}) {
  debug('options %j', options);

  return koa()
  .use(route.get('/', root));
}

/**
 * External imports
 */
import route from 'koa-route';
import createDebugLogger from 'debug';
import createKoaApplication from 'koa';

// create debug logger
const log = createDebugLogger('lgho:root');

/**
 * Routes
 */
function* root() {
  this.response.body = {
    'let go': null,
    'hold on': null,
  };
  this.response.status = 200;
}

export default function create(options = {}) {
  log('options %j', options);

  return createKoaApplication()
  .use(route.get('/', root));
}

Update root route to respond with hold-on/let-go object.
Update root route to respond with hold-on/let-go object.
