/*
 * Copyright © 2019, SAS Institute Inc., Cary, NC, USA.  All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0
 */
'use strict';

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

var _appServer = _interopRequireDefault(require("./appServer"));

var _proxyServer = _interopRequireDefault(require("./proxyServer"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function server(userRouterTable, asset, rootHandler) {
  console.log(_appServer["default"]);

  if (process.env.REVERSEPROXY === 'YES') {
    (0, _proxyServer["default"])(userRouterTable, asset, rootHandler);
  } else {
    (0, _appServer["default"])(userRouterTable, asset, rootHandler);
  }
}

var _default = server;
exports["default"] = _default;