text: import Router from 'koa-router';
  
  import ConfigController from './controllers/ConfigController';
  import JiraWebhookController from './controllers/JiraWebhookController';
  import IndexController from './controllers/IndexController';
  
  const router = new Router();
  
  router.get('/', ::IndexController.index);
  router.post('/', ::IndexController.save);
  
  router.get('/config', ::ConfigController.index);
  router.post('/config', ::ConfigController.create);
  router.get('/config/:id', ::ConfigController.show);
  router.put('/config/:id', ::ConfigController.update);
  router.del('/config/:id', ::ConfigController.destroy);
  
  router.post('/webhooks/jira', ::JiraWebhookController.processWebhook);
  
  export default router;
  