text: // shapes api server - v1 protected routes
  
  const { debug } = require('./utils');
  const Router = require('koa-router');
  
  // handle routes
  
  const router = new Router();
  
  router.methods = [
      'GET',
      'PUT',
      'POST',
      'DELETE'
    ];
  
  router.get('/info', async ctx => {
      debug(`Getting debug info`);
      ctx.body = {
          ENABLE_LOGGING: `${process.env.ENABLE_LOGGING}`,
          ENFORCE_APPROOV: `${process.env.ENFORCE_APPROOV}`,
          API_KEY: `${process.env.API_KEY}`,
          APPROOV_SECRET: `${process.env.APPROOV_SECRET}`,
          PUBLIC_DOMAIN: `${process.env.PUBLIC_DOMAIN}`
      };
  });
  
  const hello = 'Hello, World!';
  
  router.get('/hello', async ctx => {
      debug(`text: ${hello}`);
      ctx.body = hello;
  });
  
  const shapes = ['Circle', 'Rectangle', 'Square', 'Triangle'];
  
  router.get('/shapes', async ctx => {
      const shape = shapes[Math.floor((Math.random() * shapes.length))];
      debug(`shape: ${shape}`);
      ctx.body = shape;
  });
  
  module.exports = router;
  
  // end of file
  