Skip to content

Instantly share code, notes, and snippets.

@wharley
Created December 30, 2017 16:50
Show Gist options
  • Save wharley/f509d1bdad3a47d5b0f1587b3e46f5d2 to your computer and use it in GitHub Desktop.
Save wharley/f509d1bdad3a47d5b0f1587b3e46f5d2 to your computer and use it in GitHub Desktop.
Resource.route('moreinfo', {
detail: true,
handler: (req, res, next) => {
// req.params.id holds the resource's id
res.send("I'm at /resources/:id/moreinfo!")
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment