"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.pathParams = void 0;
var pathParams = exports.pathParams = function pathParams(path) {
  var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  var keys = Object.keys(params);
  var result = path;
  for (var _i = 0, _keys = keys; _i < _keys.length; _i++) {
    var key = _keys[_i];
    result = result.replace("{".concat(key, "}"), params[key]);
  }
  return result;
};