Resoues point started

This commit is contained in:
2023-02-05 17:18:40 -05:00
parent 6f29a1f7e0
commit e15fd84676
2 changed files with 38 additions and 3 deletions
+10 -2
View File
@@ -24,13 +24,18 @@ class usersService {
return this.getAuxEnd("/loginhx", reqData);
}
getUserResources(){
var reqData = {
member_id: localStorage.getItem("member_id")
};
return this.getAuxEnd("/resources", reqData);
}
//---------------------------------------- -----
//---------------------------------------- -----
// Unified call below
//---------------------------------------- -----
//---------------------------------------- -----
getAuxEnd(uri, reqData) {
// debugger;
const session_token = localStorage.getItem("session_token");
let axiosConfig = {
headers: {
@@ -40,7 +45,10 @@ class usersService {
}
};
const endPoint = process.env.REACT_APP_USERS_ENDPOINT + uri;
return Axios.get(endPoint,axiosConfig,reqData)
return Axios.get(endPoint,{
params: {
reqData
}})
.then((response) => {
console.log("~~~~~~~ Toks2 GET ~~~~~~~~");
return response;