Fork me on GitHub
#reitit
<
2018-03-01
>
ikitommi03:03:48

@manutter51 Maybe #ring can help? (on holiday still 2 weeks, no computers here)

manutter5111:03:28

No worries, enjoy your holiday 🙂

manutter5112:03:43

Actually, I just now figured it out. My original sandbox app just had routes for “/” and “/about”, and I noticed that none of the middleware was running for any URL that started with “/css” or “/js”. My guess was that the middleware is only invoked after matching on a URL pattern, so at the end of my routes list I added some “middleware hook routes,” like this:

["/js/*" (fn [_] nil)]
     ["/css/*" (fn [_] nil)]
     ["/img/*" (fn [_] nil)]
And now I’m getting my re-frame app up and running, woot!

manutter5112:03:27

Very pleased with how easy it is to debug a routing problem with the reitit tools, btw--great job!