19 lines
790 B
JavaScript
19 lines
790 B
JavaScript
import { api } from "../utils/axiosClient";
|
|
|
|
const AuthRepository = {
|
|
login: (data) => api.post("/api/auth/login", data),
|
|
refreshToken: (data) => api.post("/api/auth/refresh-token", data),
|
|
|
|
logout: (data) => api.post("/api/auth/logout", data),
|
|
profile: () => api.get(`/api/user/profile`),
|
|
register: (data) => api.post("api/auth/register", data),
|
|
resetPassword: (data) => api.post("/api/auth/reset-password", data),
|
|
forgotPassword: (data) => api.post("/api/auth/forgot-password", data),
|
|
sendMail: (data) => api.post("/api/auth/sendmail", data),
|
|
changepassword: ( data ) => api.post( "/api/auth/change-password", data ),
|
|
sendOTP: ( data ) => api.post( 'api/auth/send-otp', data ),
|
|
verifyOTP:(data)=>api.post("api/auth/login-otp",data)
|
|
};
|
|
|
|
export default AuthRepository;
|