From 1080adb75c18f6da6b91be4264c69a9bf908ff0d Mon Sep 17 00:00:00 2001 From: Shravya Ramesh Date: Thu, 18 Mar 2021 02:06:02 -0700 Subject: works --- src/constants/api.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/constants') diff --git a/src/constants/api.ts b/src/constants/api.ts index 34ef9a1c..eeac583e 100644 --- a/src/constants/api.ts +++ b/src/constants/api.ts @@ -33,6 +33,10 @@ export const DISCOVER_ENDPOINT: string = API_URL + 'discover/'; export const SEARCH_BUTTONS_ENDPOPINT: string = DISCOVER_ENDPOINT + 'search_buttons/'; export const WAITLIST_USER_ENDPOINT: string = API_URL + 'waitlist-user/'; export const COMMENT_THREAD_ENDPOINT: string = API_URL + 'reply/'; +export const USERS_FROM_CONTACTS_ENDPOINT: string = + API_URL + 'users-from-contacts/'; +export const INVITE_FRIEND_ENDPOINT: string = +USERS_FROM_CONTACTS_ENDPOINT + 'invite_friend/'; // Suggested People export const SP_USERS_ENDPOINT: string = API_URL + 'suggested_people/'; -- cgit v1.2.3-70-g09d2 From 0b656aebd671c09002dd3ad13d5d83a630cad7f1 Mon Sep 17 00:00:00 2001 From: Shravya Ramesh Date: Thu, 18 Mar 2021 13:02:24 -0700 Subject: changed endpoints --- src/constants/api.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/constants') diff --git a/src/constants/api.ts b/src/constants/api.ts index eeac583e..26afaddd 100644 --- a/src/constants/api.ts +++ b/src/constants/api.ts @@ -34,9 +34,9 @@ export const SEARCH_BUTTONS_ENDPOPINT: string = DISCOVER_ENDPOINT + 'search_butt export const WAITLIST_USER_ENDPOINT: string = API_URL + 'waitlist-user/'; export const COMMENT_THREAD_ENDPOINT: string = API_URL + 'reply/'; export const USERS_FROM_CONTACTS_ENDPOINT: string = - API_URL + 'users-from-contacts/'; + API_URL + 'user_contacts/find_friends/'; export const INVITE_FRIEND_ENDPOINT: string = -USERS_FROM_CONTACTS_ENDPOINT + 'invite_friend/'; +USERS_FROM_CONTACTS_ENDPOINT + 'user_contacts/invite_friend/'; // Suggested People export const SP_USERS_ENDPOINT: string = API_URL + 'suggested_people/'; -- cgit v1.2.3-70-g09d2 From a44e8d02c117783c19618d3af204299ae5c7a9ff Mon Sep 17 00:00:00 2001 From: Shravya Ramesh Date: Thu, 18 Mar 2021 13:38:31 -0700 Subject: erroneous endpoint for invite contacts --- src/constants/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/constants') diff --git a/src/constants/api.ts b/src/constants/api.ts index 26afaddd..1e2e887a 100644 --- a/src/constants/api.ts +++ b/src/constants/api.ts @@ -36,7 +36,7 @@ export const COMMENT_THREAD_ENDPOINT: string = API_URL + 'reply/'; export const USERS_FROM_CONTACTS_ENDPOINT: string = API_URL + 'user_contacts/find_friends/'; export const INVITE_FRIEND_ENDPOINT: string = -USERS_FROM_CONTACTS_ENDPOINT + 'user_contacts/invite_friend/'; +API_URL + 'user_contacts/invite_friend/'; // Suggested People export const SP_USERS_ENDPOINT: string = API_URL + 'suggested_people/'; -- cgit v1.2.3-70-g09d2