how to get send html and js file express code example Example: send html file express res.sendFile(path.join(__dirname + '/index.html'));