import http from '@/services/http';
import { API_ENDPOINTS } from '@/shared/constants/API_ENDPOINTS';

export const authAPI = {
  login: (email: string, password: string) => http.post(API_ENDPOINTS.AUTH_LOGIN, { email, password }),
  refreshToken: (refreshToken:string) => http.post(API_ENDPOINTS.REFRESH_TOKEN,{refreshToken}),
  register: (userData: {
    email: string;
    password: string;
    firstName: string;
    lastName: string;
  }) => http.post(API_ENDPOINTS.USERSIGNUP, userData),
};


