Testing login backend

This commit is contained in:
2019-10-02 22:53:31 -04:00
parent 5df28e0e77
commit 8de496826a
4 changed files with 20 additions and 11 deletions

View File

@@ -23,13 +23,13 @@ export const loginUser = (loginData, history) => (dispatch) => {
});
}
export const getProfileInfo = () => (dispatch) => {
axios.get('/getProfileInfo')
.then((res) => {
dispatch({
type: SET_USER,
payload: res.data,
})
})
.catch((err) => console.error(err));
}
// export const getProfileInfo = () => (dispatch) => {
// axios.get('/getProfileInfo')
// .then((res) => {
// dispatch({
// type: SET_USER,
// payload: res.data,
// })
// })
// .catch((err) => console.error(err));
// }