text: import { STATUS_CODES } from 'http'
  import router from 'koa-router'
  import koaBody from 'koa-body'
  
  const parseBody = koaBody()
  const apiRouter = router({ prefix: '/api' })
  
  apiRouter
    .all('ping', '/ping', parseBody, (ctx) => {
      ctx.response.body = { pong: ctx.request.body }
    })
    .all('not-found', '*', (ctx) => {
      ctx.response.status = 404
      ctx.response.body = { error: STATUS_CODES[status] }
    })
  
  export default apiRouter
  