Skip to content

Commit 9da0abf

Browse files
authored
Update topic_template.html
1 parent dc29ceb commit 9da0abf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Wiki/topic_template.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ <h2>Add a Comment</h2>
2323
const topicName = window.location.pathname.split('/').pop().replace('.html', ''); // Get topic name from URL
2424

2525
async function loadTopic() {
26-
const response = await fetch(`http://localhost:3000/forum/${topicName}`);
26+
const response = await fetch(`http://thejsurlback.onrender.com/forum/${topicName}`);
2727
const topic = await response.json();
2828

2929
document.getElementById('topic-title').textContent = topic.title;
@@ -43,7 +43,7 @@ <h2>Add a Comment</h2>
4343
}
4444

4545
async function deleteComment(replyIndex) {
46-
const response = await fetch(`http://localhost:3000/forum/${topicName}/reply/${replyIndex}`, {
46+
const response = await fetch(`http://thejsurlback.onrender.com/forum/${topicName}/reply/${replyIndex}`, {
4747
method: 'DELETE',
4848
headers: {
4949
'Authorization': `Bearer admin` // Only admin can delete comments

0 commit comments

Comments
 (0)