Fork me on GitHub
#reagent
<
2019-12-28
>
frozar07:12:05

Hi, I'm pretty new to reagent and libraries around it, and I would like to route against a regular expression. As I used the "reagent-template" to generate my project, I use reitit for routing purpose, I would like to declare a router as follows:

(def router
  (reitit/router
  [[#"/page.*" :index]]))
But reitit doesn't seem to handle it correctly:
svg-ellipse.core> (reitit.core/routes router)
[]
Is there a way to handle regex through reitit?

aisamu12:12:41

You might have better luck on #reitit!

frozar17:12:39

Thank you for the link :)

simple_smile 1