diff --git a/src/components/UserLogin.vue b/src/components/UserLogin.vue index 4fc12c8..f12a13e 100644 --- a/src/components/UserLogin.vue +++ b/src/components/UserLogin.vue @@ -153,7 +153,7 @@ export default { this.loginSuccess = false; try { - const response = await axios.post('http://localhost:5000/api/login', { + const response = await axios.post('http://localhost:5000/auth/login', { username: this.username, password: this.password, }); diff --git a/src/components/UserSignup.vue b/src/components/UserSignup.vue index bb7f18e..e700c2e 100644 --- a/src/components/UserSignup.vue +++ b/src/components/UserSignup.vue @@ -302,7 +302,7 @@ export default { this.successMessage = null; try { - const response = await axios.post('http://localhost:5000/api/signup', { + const response = await axios.post('http://localhost:5000/auth/signup', { firstName: this.firstName, lastName: this.lastName, username: this.username,