Skip to content

Instantly share code, notes, and snippets.

@samuelayo
Created April 2, 2018 20:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samuelayo/df7da1c7c09d3f78b2cbca5d6ffdda2e to your computer and use it in GitHub Desktop.
Save samuelayo/df7da1c7c09d3f78b2cbca5d6ffdda2e to your computer and use it in GitHub Desktop.
server.get('/p/:id', (req, res) => {
const actualPage = '/post'
const queryParams = { id: req.params.id }
app.render(req, res, actualPage, queryParams)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment