Open theronic opened 6 years ago
I tried ["/js" :path]
and ["/js/.*]
with no luck.
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
I am struggling with the same issue. Were you able to figure this out ?
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/.*"?