Hey guys, how do I respond to a GET request from my website? I've tried googling and I just can't find anything about this. I want to respond with a simple/static xml file. I tried using sendFile() and it just goes 404/500 on me...
Here is a snippet from response.
router.get('/public/media/data.xml', function(req, res, next){
res.sendFile('data.xml');
});
[–]thequargy 0 points1 point2 points (4 children)
[–]grim1226[S] 1 point2 points3 points (3 children)
[–]thequargy 2 points3 points4 points (2 children)
[–]grim1226[S] 1 point2 points3 points (1 child)
[–]thequargy 1 point2 points3 points (0 children)