|
|
@ -57,7 +57,13 @@ |
|
|
|
|
|
|
|
document.getElementById("load-comment").addEventListener("click", function() { |
|
|
|
document.getElementById("load-comment").innerHTML = "Loading"; |
|
|
|
fetch('http://localhost:85/api/v1/statuses/{{ .Page.Params.comments.id }}/context') |
|
|
|
const params = { |
|
|
|
method: 'GET', |
|
|
|
headers: { |
|
|
|
'accept': 'application/json' |
|
|
|
} |
|
|
|
}; |
|
|
|
fetch('http://localhost:85/api/v1/statuses/{{ .Page.Params.comments.id }}/context',params) |
|
|
|
.then(function(response) { |
|
|
|
return response.json(); |
|
|
|
}) |
|
|
|