Skip to content

Instantly share code, notes, and snippets.

@oprearocks
Created December 19, 2016 21:34
Show Gist options
  • Save oprearocks/5e075df2a4edd0dd0a3c39140853835f to your computer and use it in GitHub Desktop.
Save oprearocks/5e075df2a4edd0dd0a3c39140853835f to your computer and use it in GitHub Desktop.
function fantasticMiddleware(req, res, next) {
console.log("I am fantastic!")
}
router.use(/^\/(listOrders|getTotal)\/?$/, fantasticMiddleware)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment