const baseurl = 'http://192.168.1.201:3000';
const endpoints = {
  login: {
    method: 'POST',
    url: `${baseurl}/auth/signin`
  },
  passwordReset: {
    method: 'POST',
    url: `${baseurl}/auth/passwordReset`
  },
  emailExists: (email) => ({
    method: 'GET',
    url: `${baseurl}/auth/email/${email}/exists`
  }),
  tagferIdExists: (tagferId) => ({ 
    method: 'GET', 
    url: `${baseurl}/auth/tagferId/${tagferId}/exists` 
  }),
  twitterToken: {
    method: 'GET',
    url: `${baseurl}/auth/twitter/token`
  },
  sendCode: {
    method: 'POST',
    url: `${baseurl}/auth/phone/code`
  },
  verifyCode: {
    method: 'POST',
    url: `${baseurl}/auth/phone/verify`
  },
  findUsersByPhone: {
    method: 'POST',
    url: `${baseurl}/auth/findUsers/byPhone`
  },
  suggestProfiles: {
    method: 'GET',
    url: `${baseurl}/profiles/suggest`
  },
  signup: {
    method: 'PUT',
    url: `${baseurl}/auth/signup`
  },
  retrieveLinkedInInfo: (linkedInQS) => ({
    method: 'GET',
    url: `${baseurl}/auth/linkedin/get/profile${linkedInQS}`
  }),
  linkedInToken: {
    method: 'GET',
    url: `${baseurl}/auth/linkedin/token`
  },
  linkedInLogin: {
    method: 'GET',
    url: `${baseurl}/auth/linkedin/login`
  },
  getUserProfile: (profileNumber) => ({
    method: 'GET',
    url: `${baseurl}/profiles/${profileNumber}`
  })
};

export default endpoints;
