import axios from 'axios';

var baseUrl = "api/v1/table_configurations";
var fetch = function fetch(tableKey) {
  return axios.get("".concat(baseUrl, "/").concat(tableKey));
};
var update = function update(_ref) {
  var tableKey = _ref.tableKey,
    payload = _ref.payload;
  return axios.patch("".concat(baseUrl, "/").concat(tableKey), {
    tableConfiguration: payload
  });
};
var configApi = {
  fetch: fetch,
  update: update
};

export { configApi as default };
//# sourceMappingURL=api.js.map
