weavejester / compojure

A concise routing library for Ring/Clojure
Eclipse Public License 1.0
4.08k stars 259 forks source link

I have some question in the request used inside the defroutes #193

Closed nesteiner closed 4 years ago

nesteiner commented 4 years ago

sorry to bother you again,Mr weavejester when i use the defroutes,i have some question in the request inside

(defroutes app-routes
    (GET ... (handler request))

after defroutes,i def the app by middlewares

(def app (-> app-routes
                         middleware1
                         middleware2
                         ...))

is this means the request inside app-routes is the request which has been proccessed by app??

weavejester commented 4 years ago

If I've understood you correctly, yes. The middleware will be applied before app-routes.