import { authedFunction } from "../session";
import { getUrl } from "../helper";
export const settingActions = {
  getSetting: (site, key) => {
    return authedFunction({
      method: "GET",
      url: getUrl("utility", `getSetting/${site}_${key}`)
    });
  },
  setSetting: (site, key, value) => {
    return authedFunction({
      method: "POST",
      url: getUrl("utility", "setSetting"),
      data: {
        site,
        key,
        value
      }
    });
  }
};
//# sourceMappingURL=settingActions.js.map