function createHandler() {
  return async (ctx) => {
    console.log(chalk.cyan('Before setting context'))
    ctx.status = 200
    ctx.type = 'application/json'
    ctx.body = { hello: 'world' }
    console.log(chalk.cyan('After setting context'))
  }
}
// basic handler to set breakpoints for testing
basic handler to set breakpoints for testing
basic handler to set breakpoints for testing
function createHandler() {
  return async (ctx) => {
    console.log(chalk.cyan('Before setting context'))
    ctx.status = 200
    ctx.type = 'application/json'
    ctx.body = { hello: 'world' }
    console.log(chalk.cyan('After setting context'))
  }
}
function createHandler ( ) { return async ( ctx ) => { console . log ( chalk . cyan ( 'Before setting context' ) ) ctx . status = 200 ctx . type = 'application/json' ctx . body = { hello : 'world' } console . log ( chalk . cyan ( 'After setting context' ) ) } }
basic handler to set breakpoints for testing
basic handler to set breakpoints for testing