-
Notifications
You must be signed in to change notification settings - Fork 27
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
Params in URL #13
Comments
Anything more on this? At the moment, I've given a function to |
After further review and digging around I found that regular expressions can be used, which accomplishes what I needed. Given that having parameters in the path is pretty common I'd suggest making the documentation more obvious and up front as currently the main README.md doesn't list that possibility at all. Love .unless though :) |
@alexpchin Just so you have an answer for you... the solution is as so:
This checks for Notice there are NOT quotes around the regex but /.../ |
Hi,
So calling Any ideas? Many thanks. |
Hi,
|
I have an end point at /v1/report
using express-jwt to enforce authorization.
That end point takes params like this:
however, adding the urls to unless after it won't work for that end point. It does work for the other two. My feeling is that it seems to believe that the parameters are, in fact, part of the end point rather than parameters. Is this the case?
I'm sure this is just a lack of understanding on my part of the unless implementation, but I'm hoping you can assist in figuring out a way to allow for it.
The text was updated successfully, but these errors were encountered: