'use strict';
'use warning';

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));

var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));

var _lodash = _interopRequireDefault(require("lodash"));

var Router = /*#__PURE__*/function () {
  /**
   *
   * @param AppEngine
   * @param {Object} RouteConfig
   * @param {String} RouteConfig.name
   * @param {String} RouteConfig.url
   *
   * @param {Object} RouteConfig.stylesheet
   * @param {Object} RouteConfig.stylesheet.header
   * @param {Array} RouteConfig.stylesheet.header.metadata
   * @param {Array} RouteConfig.stylesheet.header.css
   *
   * @param {Object} RouteConfig.stylesheet.footer
   * @param {Array} RouteConfig.stylesheet.footer.js
   *
   * @param {Function} RouteConfig.component
   */
  function Router(AppEngine, RouteConfig) {
    (0, _classCallCheck2["default"])(this, Router);
    this.RouteConfig = _lodash["default"].extend([{
      name: "",
      url: null,
      stylesheet: {
        header: {
          metadata: [],
          css: []
        },
        footer: {
          js: []
        }
      },
      component: null,
      serverEngine: Server.FASTIFY_CORE_ENGINE,
      layout: {
        method: Router.METHOD_GET,
        component: null
      }
    }], RouteConfig);
  }

  (0, _createClass2["default"])(Router, null, [{
    key: "METHOD_GET",
    get: function get() {
      return "GET";
    }
  }, {
    key: "METHOD_POST",
    get: function get() {
      return "POST";
    }
  }]);
  return Router;
}();

var _default = Router;
exports["default"] = _default;
//# sourceMappingURL=index.js.map