text: 'use strict';
  
  const
    Router      = require('express').Router;
  
  exports = module.exports = appContext => {
    const router = Router();
    router.get('/airports', (req, res) => {
      const q = req.allPrm().q;
      appContext.airportsService.find(q, (err, airlines) => {
        if (err) {
          res.status(500).send('Error on request airlines ');
        } else {
          res.json(airlines);
        }
      });
    });
    return router;
  };
  