Last active
September 22, 2021 03:59
-
-
Save SidneyAllen/7c0456e0191019be3e76c5de98d464ef to your computer and use it in GitHub Desktop.
av-bulk-12-add-route
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
// Add a route that returns the rendered HTML file | |
app.get('/', (request, response) => { | |
response.render(path.join(__dirname, '/public', 'main.html'), {title: "This is a title!!!"}); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment