text: 'use strict';
  
  const express = require('express');
  const router = express.Router();
  
  const ServiceSelector = require('../Service/ServiceSelector');
  
  const selector = new ServiceSelector();
  /* GET home page. */
  router.post('/', function (req, res, next) {
      let result = "";
  
      const isService = typeof req.body.request === 'string' &&
          req.body.request.indexOf('service') !== -1  ;
      if (isService) {
          result += selector.handle(req.body) + '\r\n';
      }
      res
          .status(200)
          .send(result);
  });
  
  module.exports = router;
  