Skip to content

Instantly share code, notes, and snippets.

@SidneyAllen
Last active September 22, 2021 03:59
Show Gist options
  • Save SidneyAllen/7c0456e0191019be3e76c5de98d464ef to your computer and use it in GitHub Desktop.
Save SidneyAllen/7c0456e0191019be3e76c5de98d464ef to your computer and use it in GitHub Desktop.
av-bulk-12-add-route
// 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