const baseurl = 'http://127.0.0.1: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}/users/by/phone`
  }
};

export default endpoints;
