Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

nodejs how to send html

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