Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated the API endpoint to /users?profile=true in url.js and AppConstants.js #587

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading