Skip to content

Commit

Permalink
edited signup endpoint to dj-rest-auth
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonaspence committed Jun 10, 2022
1 parent fea23a3 commit 9f544bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/static/src/authentication/Signup.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Signup extends Component {
}

captureLogin() {
axios.get(`${BASE_URL}/rest-auth/user/`, {
axios.get(`${BASE_URL}/dj-rest-auth/user/`, {
headers: {
'Authorization': `Token ${JSON.parse(localStorage.getItem('current-user')).key}`
}
Expand All @@ -45,7 +45,7 @@ class Signup extends Component {

handleSignUp(e) {
e.preventDefault();
axios.post(`${BASE_URL}/rest-auth/registration/`, this.state,)
axios.post(`${BASE_URL}/dj-rest-auth/registration/`, this.state,)
.then(res => {
localStorage.setItem('current-user', JSON.stringify(res.data));
this.props.props.history.push('/profile/create/');
Expand Down

0 comments on commit 9f544bc

Please sign in to comment.