Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

express send html file

app.get('/test', function(req, res) {
    res.sendFile('test.html', {root: __dirname })
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #express #send #html #file
ADD COMMENT
Topic
Name
6+5 =