I have two different web applications in Clojure developed with Compojure. Each use defroutes to create its handler.
How can I combine the two different definitions of defroutes into one defroute? I want to reuse the routes of the first app into the second.
You can use compojure.core/routes to combine routes:
(def my-handler
(routes some-handler
some-other-handler))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With