Skip to content

Commit

Permalink
Fixes #133 wrong reitit router definition in production
Browse files Browse the repository at this point in the history
  • Loading branch information
markokocic committed Feb 21, 2024
1 parent 0dbe5e5 commit 1249b3f
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@

(defmethod ig/init-key :router/core
[_ {:keys [routes env] :as opts}]
(let [router #(ring/router ["" opts routes])]
(if (= env :dev)
router
(constantly router))))
(if (= env :dev)
#(ring/router ["" opts routes])
(constantly (ring/router ["" opts routes]))))

0 comments on commit 1249b3f

Please sign in to comment.