-
Notifications
You must be signed in to change notification settings - Fork 542
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
Overlapping routes #294
Comments
+1 For this question. I have exactly the same problem. Did you find a way to solve this? |
I actually decided to use https://github.com/BiAtoms/Http.swift which supports overlapping paths. |
Oddly enough, I'm trying to do exactly the same thing. No thoughts yet? |
The issue with the overlapping paths in the routes was solved in #382. Feel free to open in case it wasn't solved for you. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Similar to the example code:
I would like to do something like this (but it doesn't work, even reversing the order of the two statements):
This would enable the HTML inside the
test
directory to assume it's in the web root, and would also allow it to reference vendor libs (eg jQuery) from/vendor/jquery.js
.Unfortunately Swifter doesn't allow this, as it seems the first handler whose regex matches the path will be used, even if it returns a
404
.Symlinks might be a solution except I have other factors which preclude them.
So my question is: is it possible to craft a symlink to match all, but to preclude a specific path? eg something like:
My regex is awful at best, so hoping someone might be able to help.
The text was updated successfully, but these errors were encountered: