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
path-to-regexp
It will be nice if we use path-to-regexp so we could use express like path format instead of writing regex directly.
The text was updated successfully, but these errors were encountered:
I am doing this:
.unless({ path: [ { url: pathToRegexp('/something/:somethingElse'), methods: ["POST"] } ] })
Sorry, something went wrong.
cool! I know this is a very old thread, I am not sure how can we do this as currently if url is string we do a equal comparison
url
express-unless/src/index.ts
Lines 78 to 80 in 98b3621
No branches or pull requests
It will be nice if we use path-to-regexp so we could use express like path format instead of writing regex directly.
The text was updated successfully, but these errors were encountered: