import apiClient from "./apiClient";

export function registerUser(userData) {
  return apiClient.post("/users/register", userData);
}

export function loginUser(userData) {
  return apiClient.post("/users/login", userData);
}

export function recoverPassword(userData) {
  return apiClient.post("/users/recover-password", userData);
}

export function logoutUser() {
  return apiClient.post("/users/logout");
}

export function getSessionUser() {
  return apiClient.get("/users/session");
}
