Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

express return html file

//res.sendFile(path [, options] [, fn])
app.get('/test', function(req, res) {
    res.sendFile('test.html')
});
Source by expressjs.com #
 
PREVIOUS NEXT
Tagged: #express #return #html #file
ADD COMMENT
Topic
Name
1+6 =