Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Express like route middlewares #20

Merged
merged 3 commits into from
Feb 3, 2019
Merged

Conversation

jkyberneees
Copy link
Collaborator

Supporting express.js like route middlewares. Feature request #16

Example:

service.get('/hi/:name', (req, res, next) => {
  req.params.name = req.params.name.toUpperCase()
  next()
}, async (req, res) => {
  return 'Hello ' + req.params.name
})

@jkyberneees jkyberneees merged commit aa7aec6 into master Feb 3, 2019
@jkyberneees jkyberneees deleted the express-like-route-middlewares branch February 4, 2019 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant