Skip to content

Commit

Permalink
chore: Update API endpoint URLs in chat component
Browse files Browse the repository at this point in the history
  • Loading branch information
HarshitShukla-dev committed Jul 15, 2024
1 parent 8702277 commit 85f2857
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class ChatComponent implements OnInit {

setInterval(() => {
this.http
.get<{ msgs: any[] }>('http://localhost:3000/api/v1/group/getmsgs', {
.get<{ msgs: any[] }>('http://edventure.azurewebsites.net/api/v1/group/getmsgs', {
params: { loggedInUsername: this.loggedInUsername }
})
.subscribe({
Expand All @@ -52,7 +52,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({
next: (response) => {
console.log('Message sent:', response);
Expand Down

0 comments on commit 85f2857

Please sign in to comment.