{"size": 496, "ext": "js", "max_stars_repo_path": "client/src/services/StudioApi.js", "max_stars_repo_name": "Real-Music/CamHouse", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "client/src/services/StudioApi.js", "max_issues_repo_name": "Real-Music/CamHouse", "max_issues_repo_issues_event_min_datetime": "2021-03-09T05:00:38.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-26T11:19:09.000Z", "max_forks_repo_path": "client/src/services/StudioApi.js", "max_forks_repo_name": "Real-Music/CamHouse", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 7, "max_forks_count": null, "avg_line_length": 20.6666666667, "max_line_length": 49, "alphanum_fraction": 0.5564516129}
import Api from "@/services/Api";

export default {
  create(slug, studio) {
    return Api().post(`studio/${slug}`, studio, {
      headers: {
        "Content-Type": "multipart/form-data"
      }
    });
  },
  getAllStudio(slug) {
    return Api().get(`studio/user/${slug}`);
  },
  updateStudio(slug, data) {
    return Api().patch(`/studio/${slug}`, data);
  },
  deleteStudio(slug) {
    return Api().delete(`/studio/${slug}`);
  },
  getStudios() {
    return Api().get("/studio");
  }
};
