Fork me on GitHub
#ring-swagger
<
2018-07-03
>
Andreasp199415:07:29

Hey can anyone suggest a way to keep compojure-api routes and legacy compojure framework routes side by side?

Andreasp199415:07:49

I am trying to do that but they don't seem to work well together.. The one overrides the other...

ikitommi17:07:34

@andreasp1994 maybe:

(require '[compojure.api.sweet :refer :all]
                  '[compojure.core :as c])

(def app1 (api (GET ...)))

(def app2 (c/routes (c/GET ...)))

Andreasp199418:07:41

@ikitommi Thanks will try it out!