File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ let lastIdSeen = -1;
33async function getAllMessages ( ) {
44 try {
55 const response = await fetch (
6- `https://iswanna-chat-app-backend.hosting.codeyourfuture.io// messages?since=${ lastIdSeen } ` ,
6+ `https://iswanna-chat-app-backend.hosting.codeyourfuture.io/messages?since=${ lastIdSeen } ` ,
77 ) ;
88
99 const data = await response . json ( ) ;
@@ -42,7 +42,7 @@ async function getAllMessages() {
4242
4343 likeButton . addEventListener ( "click" , async ( ) => {
4444 await fetch (
45- `https://iswanna-chat-app-backend.hosting.codeyourfuture.io// messages/${ message . id } /like` ,
45+ `https://iswanna-chat-app-backend.hosting.codeyourfuture.io/messages/${ message . id } /like` ,
4646 {
4747 method : "POST" ,
4848 } ,
@@ -80,7 +80,7 @@ formElement.addEventListener("submit", async (event) => {
8080 try {
8181 // Send the data
8282 const response = await fetch (
83- "https://iswanna-chat-app-backend.hosting.codeyourfuture.io// messages" ,
83+ "https://iswanna-chat-app-backend.hosting.codeyourfuture.io/messages" ,
8484 {
8585 method : "POST" ,
8686 headers : {
You can’t perform that action at this time.
0 commit comments