We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using this code from doc
app.param (name, regexp) -> if Object.prototype.toString.call(regexp) == '[object RegExp]' return (req, res, next, val) -> if captures = regexp.exec(String(val)) req.params[name] = captures[0] next() else next('route')
I can use named params with regex match, but I can't use this param more than 1 time and generic names make the url a little messy.
I can't do this
app.get '/purchase/:objectId/:objectId', (req, res, next) ->
There are some way to name this params like below?
app.get '/purchase/:(objectId)place/:(objectId)user', (req, res, next) -> console.log req.params.place, req.params.user
The text was updated successfully, but these errors were encountered:
The capturing and the route syntax is handled by https://github.com/component/path-to-regexp
Please file an issue there. When it gets implemented there, it'll come into express.
Sorry, something went wrong.
No branches or pull requests
Using this code from doc
I can use named params with regex match, but I can't use this param more than 1 time and generic names make the url a little messy.
I can't do this
There are some way to name this params like below?
The text was updated successfully, but these errors were encountered: