reitit

roklenarcic 2024-11-09T14:30:10.509129Z

What happens with route data if I specify routes that are nested by path, but not as a routing tree. e.g.

[["/subpath" {:middleware [...]}]
 ["/subpath/more ....]]
Does the more path also get middleware?

wevrem 2024-11-09T15:41:44.538299Z

No it won’t. If you wanted inheritance like that, you would do something like this:

["/subpath" {:middleware [...]}
 ["" {:get ...}]
 ["/more" {:post ...}]]

roklenarcic 2024-11-09T18:02:33.206259Z

thanks