index.js 968 B

1234567891011121314151617181920
  1. "use strict";
  2. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  3. if (k2 === undefined) k2 = k;
  4. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  5. }) : (function(o, m, k, k2) {
  6. if (k2 === undefined) k2 = k;
  7. o[k2] = m[k];
  8. }));
  9. var __exportStar = (this && this.__exportStar) || function(m, exports) {
  10. for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
  11. };
  12. Object.defineProperty(exports, "__esModule", { value: true });
  13. exports.createProxyMiddleware = void 0;
  14. const http_proxy_middleware_1 = require("./http-proxy-middleware");
  15. function createProxyMiddleware(context, options) {
  16. const { middleware } = new http_proxy_middleware_1.HttpProxyMiddleware(context, options);
  17. return middleware;
  18. }
  19. exports.createProxyMiddleware = createProxyMiddleware;
  20. __exportStar(require("./handlers"), exports);