I have a server with Node.js and I use Express to build a web app. My server is already able to get an array from a database using a function (rss_interrogDB). Now I want to use this array to display a list in the html page. But I must be missing something...
On the server-side my code is:
app.get('/', function(req, res) {
rss_interrogDB(function() {
// don't konw what to add here
});
On the html page the code is:
$.get('/', {}, function(data){
// not sure it is the right code
console.log(data);
// then the code to create a list from the array (no pb with that)
});
Thank you for your help!