File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -2,15 +2,11 @@ import { axiosClient } from '../../../shared/types/api/http-client';
22import { UserInfoRequest , UserInfoResponse } from '../model/userInformation' ;
33
44export const readUser = async ( ) : Promise < UserInfoResponse > => {
5- const response = await axiosClient . get < { result : UserInfoResponse } > ( '/users' , {
6- headers : { skipAuth : true } ,
7- } ) ;
5+ const response = await axiosClient . get < { result : UserInfoResponse } > ( '/users' ) ;
86 return response . data . result ;
97} ;
108
119export const updateUser = async ( data : UserInfoRequest ) : Promise < UserInfoResponse > => {
12- const response = await axiosClient . put < UserInfoResponse > ( '/users' , data , {
13- headers : { skipAuth : true } ,
14- } ) ;
10+ const response = await axiosClient . put < UserInfoResponse > ( '/users' , data ) ;
1511 return response . data ;
1612} ;
You can’t perform that action at this time.
0 commit comments