"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _express = _interopRequireDefault(require("express"));
var _cors = _interopRequireDefault(require("cors"));
var _config = _interopRequireDefault(require("./config"));
var _users = _interopRequireDefault(require("./routes/users.route"));
var app = (0, _express["default"])();
app.use(_express["default"].json());
app.use(_express["default"].urlencoded({
  extended: false
}));
app.set('port', _config["default"].port);
app.use((0, _cors["default"])({
  origin: '*'
}));
app.use(_users["default"]);
var _default = app;
exports["default"] = _default;