Resoues point started
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user