-
Notifications
You must be signed in to change notification settings - Fork 368
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
URL parameters behind a variable #47
Comments
@rottmann This library was never intended to even parse a string with query parameters. I'll need some more information to work this out though. What is the path/options you are using and what is the intended behaviour? |
Using the lib in my apidoc project An example output is here: http://apidocjs.com/example/ @weikinhuang report an issue apidoc/apidoc#226 because he use urls with |
You can use a backslash to escape the question mark, but it's an optional flag for params (https://github.com/pillarjs/path-to-regexp#optional). |
See also pillarjs/path-to-regexp#47 We're using a hack to include query parameters, because params aren't officially supported by path-to-regexp.
this will work (with / behind var1)
/some/path/:var1/?fixed_var=fixed_value
this not
/some/path/:var1?fixed_var=fixed_value
The text was updated successfully, but these errors were encountered: