Skip to content

Commit

Permalink
Updated the API endpoint to /users?profile=true in url.js and AppCons…
Browse files Browse the repository at this point in the history
…tants.js in constants and helper-function folder
  • Loading branch information
Hariom01010 committed Dec 3, 2024
1 parent b9afa35 commit 0e0482b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/constants/AppConstants.js
Original file line number Diff line number Diff line change
@@ -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/',
Expand Down
2 changes: 1 addition & 1 deletion src/helper-functions/urls.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`;

/**
*
Expand Down

0 comments on commit 0e0482b

Please sign in to comment.