diff --git a/EdVenture-FrontEnd/src/app/components/dashboard/chat/chat.component.ts b/EdVenture-FrontEnd/src/app/components/dashboard/chat/chat.component.ts index 1e6f8aa..cba1157 100644 --- a/EdVenture-FrontEnd/src/app/components/dashboard/chat/chat.component.ts +++ b/EdVenture-FrontEnd/src/app/components/dashboard/chat/chat.component.ts @@ -23,7 +23,7 @@ export class ChatComponent implements OnInit { setInterval(() => { this.http - .get('http://localhost:3000/api/v1/group/getmsgs', { + .get('http://edventure.azurewebsites.net/api/v1/group/getmsgs', { params: { loggedInUsername: this.loggedInUsername } }) .subscribe((response: any) => { @@ -42,7 +42,7 @@ export class ChatComponent implements OnInit { } // create the body of the request this.http - .post('http://localhost:3000/api/v1/group/msgGroup', body) + .post('http://edventure.azurewebsites.net/api/v1/group/msgGroup', body) .subscribe((response: any) => {}) this.content = '' // clear the input field diff --git a/EdVenture-FrontEnd/src/app/components/dashboard/dashboard-nav/dashboard-nav.component.ts b/EdVenture-FrontEnd/src/app/components/dashboard/dashboard-nav/dashboard-nav.component.ts index 600e300..93f2794 100644 --- a/EdVenture-FrontEnd/src/app/components/dashboard/dashboard-nav/dashboard-nav.component.ts +++ b/EdVenture-FrontEnd/src/app/components/dashboard/dashboard-nav/dashboard-nav.component.ts @@ -15,7 +15,7 @@ export class DashboardNavComponent { constructor(public http: HttpClient, private router: Router) { } logout() { - this.http.get("http://localhost:3000/api/v1/user/logout",{withCredentials:true}).subscribe( + this.http.get("http://edventure.azurewebsites.net/api/v1/user/logout",{withCredentials:true}).subscribe( () => { // Success: delete all cookies for domain 'localhost' and path '/' // Assuming you're using ngx-cookie-service diff --git a/EdVenture-FrontEnd/src/app/components/home/home.component.ts b/EdVenture-FrontEnd/src/app/components/home/home.component.ts index e0b1f6c..7008724 100644 --- a/EdVenture-FrontEnd/src/app/components/home/home.component.ts +++ b/EdVenture-FrontEnd/src/app/components/home/home.component.ts @@ -20,7 +20,7 @@ export class HomeComponent implements OnInit { } checkCookie(): void { - this.http.post("http://localhost:3000/api/v1/user/checkCookie", {}, {withCredentials: true}).subscribe( + this.http.post("http://edventure.azurewebsites.net/api/v1/user/checkCookie", {}, {withCredentials: true}).subscribe( (response: any) => { if(response.msg == "Log in Success") this.router.navigate(['/dashboard']) diff --git a/EdVenture-FrontEnd/src/app/components/login/login.component.ts b/EdVenture-FrontEnd/src/app/components/login/login.component.ts index a6f9c19..97b1bcd 100644 --- a/EdVenture-FrontEnd/src/app/components/login/login.component.ts +++ b/EdVenture-FrontEnd/src/app/components/login/login.component.ts @@ -32,7 +32,7 @@ export class LoginComponent { this.body.username = form.value.email; this.body.password = form.value.password; this.http - .post('http://localhost:3000/api/v1/user/signin', this.body, {withCredentials: true}) + .post('http://edventure.azurewebsites.net/api/v1/user/signin', this.body, {withCredentials: true}) .subscribe((response: any) => { this.state = response.msg; if(this.state == "Log In Success"){ diff --git a/EdVenture-FrontEnd/src/app/components/signup/signup.component.ts b/EdVenture-FrontEnd/src/app/components/signup/signup.component.ts index 1d5406b..6824467 100644 --- a/EdVenture-FrontEnd/src/app/components/signup/signup.component.ts +++ b/EdVenture-FrontEnd/src/app/components/signup/signup.component.ts @@ -65,7 +65,7 @@ export class SignupComponent { this.userData.email = email; this.setotp.email = email; this.http - .post('http://localhost:3000/api/v1/user/getotp', body) + .post('http://edventure.azurewebsites.net/api/v1/user/getotp', body) .subscribe((response: any) => { this.state = response.msg; }); @@ -86,7 +86,7 @@ export class SignupComponent { this.setotp.method = 'signup'; // Send a request to the server to verify the OTP this.http - .post('http://localhost:3000/api/v1/user/verifyotp', this.setotp) + .post('http://edventure.azurewebsites.net/api/v1/user/verifyotp', this.setotp) .subscribe((response: any) => { console.log(response); this.state = response.msg; @@ -101,7 +101,7 @@ export class SignupComponent { if (form.valid) { this.userData.educational_institute = form.value.college; this.http - .post('http://localhost:3000/api/v1/user/signup', this.userData) + .post('http://edventure.azurewebsites.net/api/v1/user/signup', this.userData) .subscribe((response: any) => { this.state = response.msg; console.log(response)