Saturday 11 March 2017

Send json data (asynchronous) to my response

So,upon request I respond with a basic template(I use ejs) and I want to add json data to it when I get from an external API. I have noticed that I can't use res.render or res.write twice(I get errors) so I really don't know what to do.Any ideas?



via stop

No comments:

Post a Comment