import { apiGet, apiPost } from "../client";

export const modesApi = {
  list(options) {
    return apiGet("/api/v1/modes/list", options);
  },

  active(options) {
    return apiGet("/api/v1/modes/active", options);
  },

  enable(tag) {
    return apiPost(`/api/v1/modes/${encodeURIComponent(String(tag))}/enable`);
  },

  disable(tag) {
    return apiPost(`/api/v1/modes/${encodeURIComponent(String(tag))}/disable`);
  },
};
