Fork me on GitHub
#reitit
<
2020-05-26
>
Heikki Hämäläinen06:05:58

This might interest someone here also. I published a simple tutorial for mixing Reitit with ClojureScript and Macchiato: https://dev.solita.fi/2020/05/26/clojurescript-web-serverwith-macchiato-shadowcljs-and-reitit.html

👏 16
ikitommi09:05:16

Awesome, thanks for sharing!

👍 4
ikitommi11:05:57

A small utility to list which middleware are effective in a reitit-ring endpoint:

(defn mounted-middleware [app path method]
  (->> app
       (ring/get-router)
       (r/compiled-routes)
       (filter (comp (partial = path) first))
       (first) (last) method :middleware (filterv :wrap)))