From 79d237f616c37940f5d476eb1dca6b5d05cf148a Mon Sep 17 00:00:00 2001 From: Ashm Walia <40498934+ashmgarv@users.noreply.github.com> Date: Wed, 14 Oct 2020 12:55:36 -0700 Subject: [TMA-232] (Small change) Make call to the correct API on backend and a nitpick (#55) * Make call to a the correct API on backend and a nitpick * Added a feedback (Alert) after successful image upload * Iterate through the returned data to see if the image was actually uploaded successfully --- 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 b1ec19aa..d5733592 100644 --- a/src/constants/api.ts +++ b/src/constants/api.ts @@ -12,5 +12,5 @@ export const COVER_PHOTO_ENDPOINT: string = API_URL + 'large-profile-pic/'; export const AVATAR_PHOTO_ENDPOINT: string = API_URL + 'small-profile-pic/'; export const GET_IG_POSTS_ENDPOINT: string = API_URL + 'posts-ig/'; export const SEARCH_ENDPOINT: string = API_URL + 'search/'; -export const MOMENTS_UPLOAD_ENDPOINT: string = API_URL + 'upload-moments/'; +export const MOMENTS_UPLOAD_ENDPOINT: string = API_URL + 'moments/'; export const VERIFY_INVITATION_CODE_ENDPOUNT: string = API_URL + 'verify-code/'; -- cgit v1.2.3-70-g09d2