From 0e0482bd6eef9cce5cadeb63c29841b60acf4834 Mon Sep 17 00:00:00 2001 From: Hariom Vashista Date: Tue, 3 Dec 2024 23:55:50 +0530 Subject: [PATCH] Updated the API endpoint to /users?profile=true in url.js and AppConstants.js in constants and helper-function folder --- src/constants/AppConstants.js | 2 +- src/helper-functions/urls.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/constants/AppConstants.js b/src/constants/AppConstants.js index 4d0c9351..ef3b4d4c 100644 --- a/src/constants/AppConstants.js +++ b/src/constants/AppConstants.js @@ -1,7 +1,7 @@ const BASE_IMAGE_URL = 'https://raw.githubusercontent.com/Real-Dev-Squad/website-static/main/members'; const BASE_API_URL = process.env.NEXT_PUBLIC_BASE_API_URL; -const USER_DATA_URL = `${BASE_API_URL}/users/self`; +const USER_DATA_URL = `${BASE_API_URL}/users?profile=true`; const PATHS = { HOME: 'https://www.realdevsquad.com', WELCOME: 'https://welcome.realdevsquad.com/', diff --git a/src/helper-functions/urls.js b/src/helper-functions/urls.js index 507d8d04..ef248c8b 100644 --- a/src/helper-functions/urls.js +++ b/src/helper-functions/urls.js @@ -2,7 +2,7 @@ const baseURL = `${process.env.NEXT_PUBLIC_BASE_API_URL}`; const imgBaseURL = `https://raw.githubusercontent.com/Real-Dev-Squad/website-static/main`; const getMembersURL = `${baseURL}/members`; const cloudinaryImageUrl = `https://res.cloudinary.com/realdevsquad/image/upload`; -const getUserProfileSelf = `${baseURL}/users/self`; +const getUserProfileSelf = `${baseURL}/users?profile=true`; /** *