@@ -62,7 +62,7 @@ export async function logOut() {
62
62
*/
63
63
64
64
export async function changePassword ( newPassword : string , currPassword : string ) {
65
- const response = await userServiceClient . post ( '/changepassword' , {
65
+ const response = await apiGatewayClient . post ( '/auth /changepassword' , {
66
66
newPassword : newPassword ,
67
67
currPassword : currPassword
68
68
} )
@@ -75,7 +75,7 @@ export async function changePassword(newPassword: string, currPassword: string)
75
75
*/
76
76
export async function updateUserProfile ( username : string , bio : string | null ) {
77
77
78
- const response = await userServiceClient . post ( '/updateProfile' , {
78
+ const response = await apiGatewayClient . post ( '/auth /updateProfile' , {
79
79
username : username ,
80
80
bio : bio ,
81
81
} )
@@ -84,14 +84,14 @@ export async function updateUserProfile(username : string, bio: string | null) {
84
84
}
85
85
86
86
export async function uploadProfilePic ( formData : FormData ) {
87
- const response = await userServiceClient . post ( '/uploadProfilePic' , formData )
87
+ const response = await apiGatewayClient . post ( '/auth /uploadProfilePic' , formData )
88
88
89
89
return response ;
90
90
}
91
91
92
92
export async function updateUserRole ( id : number , role : 'ADMIN' | 'USER' ) {
93
93
94
- const response = await userServiceClient . put ( '/updateRole' , {
94
+ const response = await apiGatewayClient . put ( '/auth /updateRole' , {
95
95
id : id ,
96
96
role : role ,
97
97
} )
0 commit comments