Skip to content

Commit

Permalink
Merge branch 'fix/update-users-self-api-endpoint' of https://github.c…
Browse files Browse the repository at this point in the history
…om/Hariom01010/website-my into fix/update-users-self-api-endpoint
  • Loading branch information
Hariom01010 committed Jan 7, 2025
2 parents 2cca5a1 + eae7af0 commit 64a09a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export default class ProfileController extends Controller {
e.preventDefault();
const cleanReqObject = this.removeEmptyFields(this.formData);
try {
const response = await fetch(`${BASE_URL}/users?profile=true`, {
const response = await fetch(`${BASE_URL}/users/self`, {
method: 'PATCH',
body: JSON.stringify(cleanReqObject),
headers: {
Expand Down
2 changes: 1 addition & 1 deletion app/utils/register-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import ENV from 'website-my/config/environment';
const { BASE_API_URL } = ENV;

const registerUser = (user) =>
fetch(`${BASE_API_URL}/users?profile=true`, {
fetch(`${BASE_API_URL}/users/self`, {
method: 'PATCH',
body: JSON.stringify(user),
headers: {
Expand Down

0 comments on commit 64a09a2

Please sign in to comment.