From the self Host I want to get the data after every 5 seconds.
My Code in request.js:
$.ajax({
type: "GET",
url: "http://localhost:8080/api/Data",
success: function (data) {
console.log(data);
}
});
What do I have to add?