Skip to content

Commit

Permalink
fixed api endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
anudeep-mp committed Feb 19, 2023
1 parent 42f9ded commit 8e17525
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/actions/userActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const login = (email, password) => async (dispatch) => {
}

const { data } = await axios.post(
'${process.env.REACT_APP_SERVER_URL}/api/users/login',
`${process.env.REACT_APP_SERVER_URL}/api/users/login`,
{ email, password },
config
)
Expand Down Expand Up @@ -87,7 +87,7 @@ export const register = (name, email, password) => async (dispatch) => {
}

const { data } = await axios.post(
'${process.env.REACT_APP_SERVER_URL}/api/users',
`${process.env.REACT_APP_SERVER_URL}/api/users`,
{ name, email, password },
config
)
Expand Down

0 comments on commit 8e17525

Please sign in to comment.