mirror of
https://bitbucket.org/tagfer_team/tagfer-app.git
synced 2025-12-25 03:37:41 +00:00
46 lines
985 B
JavaScript
46 lines
985 B
JavaScript
const baseurl = 'https://us-central1-tagfer-inc.cloudfunctions.net/api';
|
|
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`
|
|
}
|
|
};
|
|
|
|
export default endpoints;
|