text: "use strict";
  
  var _express = _interopRequireDefault(require("express"));
  
  var _compression = _interopRequireDefault(require("compression"));
  
  var _cookieParser = _interopRequireDefault(require("cookie-parser"));
  
  var _cors = _interopRequireDefault(require("cors"));
  
  var _helmet = _interopRequireDefault(require("helmet"));
  
  var _morgan = _interopRequireDefault(require("morgan"));
  
  var _routes = _interopRequireDefault(require("./routes"));
  
  var _config = _interopRequireDefault(require("./config/config"));
  
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  
  /* eslint-disable no-console */
  const app = (0, _express.default)();
  /**
   * Get port from environment and store in Express.
   */
  
  app.set('port', _config.default.port || '3001');
  app.use((0, _morgan.default)('dev'));
  app.use(_express.default.json({
    limit: '50mb',
    extended: true
  }));
  app.use(_express.default.urlencoded({
    limit: '50mb',
    extended: true
  }));
  app.use(_express.default.json({
    limit: '50mb'
  }));
  app.use((0, _cookieParser.default)());
  app.use((0, _helmet.default)());
  app.use((0, _cors.default)());
  app.use((0, _compression.default)());
  app.use('/', _routes.default); //app.use(bodyParser({ limit: '5mb' }));
  
  module.exports = app;
  //# sourceMappingURL=app.js.map