Last active
August 29, 2015 14:00
-
-
Save adamhalasz/cf44748c2901e247c423 to your computer and use it in GitHub Desktop.
response.html() node
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Listen on http://example.com/ and respond with index.html | |
app.get('/', function(request, response, mysql){ | |
response.html('/index.html', { title: 'Diet.js Example!' }); | |
mysql.end(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment