import { api } from "../utils/axiosClient";

const AuthRepository = {
  //  Public routes (no auth token required)
  login: (data) => api.postPublic("/api/auth/login", data),
  refreshToken: (data) => api.postPublic("/api/auth/refresh-token", data),
  forgotPassword: (data) => api.postPublic("/api/auth/forgot-password", data),
  resetPassword: (data) => api.postPublic("/api/auth/reset-password", data),
  sendOTP: (data) => api.postPublic("/api/auth/send-otp", data),
  verifyOTP: (data) => api.postPublic("/api/auth/login-otp", data),
  register: (data) => api.postPublic("/api/auth/register", data),
  sendMail: (data) => api.postPublic("/api/auth/sendmail", data),

  //  Protected routes (require auth token)
  logout: (data) => api.post("/api/auth/logout", data),
  profile: () => api.get("/api/user/profile"),
  changepassword: (data) => api.post("/api/auth/change-password", data),
  appmenu:()=>api.get('/api/appmenu/get/menu')

};

export default AuthRepository;
