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
The example given in README for bidi-ring/->ResourceMaybe does not seem to match any subpath as explained, e.g.:
(def routes ["/" {"" :home "js" #?(:clj (bidi-ring/->ResourcesMaybe {:prefix "js/"}) :cljs :server-fetch) true :not-found}])
(bidi/match-route* routes/routes "/js" {}) => {:handler #object[bidi.ring$eval22229$__GT_ResourcesMaybe__22247 0x22dbf7fe "bidi.ring$eval22229$__GT_ResourcesMaybe__22247@22dbf7fe"]} (bidi/match-route* routes/routes "/js/anything-else" {}) => {:handler :not-found}
I'm guessing I need to specify "js/.*"?
The text was updated successfully, but these errors were encountered:
I tried ["/js" :path] and ["/js/.*] with no luck.
["/js" :path]
["/js/.*]
Using bidi v2.1.2, the following route does not match:
(let [routes ["" [["/" :index]] ["/css/" (bidi-ring/->ResourcesMaybe {:prefix "public/css/"})] ["/js/" (bidi-ring/->ResourcesMaybe {:prefix "public/js/"})]]] (bidi/match-route routes "/js/anything.js")) => nil
Sorry, something went wrong.
I am struggling with the same issue. Were you able to figure this out ?
No branches or pull requests
The example given in README for bidi-ring/->ResourceMaybe does not seem to match any subpath as explained, e.g.:
I'm guessing I need to specify "js/.*"?
The text was updated successfully, but these errors were encountered: