You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

19 lines
607 B

/** @ngInject */
const ProfileService = ($http) => {
let serv = {};
serv.fetchProfileService = (id) =>{
return $http.get(`${process.env.RESTAPI_URL}/api/user/${id}`, { withCredentials: true })
.then( (result) => { return result.data; })
.catch( (error) => { return error; });
}
serv.updateUserProfile = (id) => {
return $http.get(`${process.env.RESTAPI_URL}/api/user/${id}`, { withCredentials: true })
.then( (result) => { return result.data; })
.catch( (error) => { return error; });
}
return serv;
}
export default ProfileService;