;; Route names will be taken from the symbols
(defn new-user [request] ,,,)
(defn view-user [request] ,,,)
(route/expand-routes
#{["/user/:id" :post [,,, `new-user] :constraints {:id #"[0-9]+"}]
["/user/:id" :get [,,, `view-user] :constraints {:id #"[0-9]+"}]})
;; Route names will be taken from the interceptors
(def new-user-intc {:name :new-user :enter (fn [context] ,,,)})
(def view-user-intc {:name :view-user :enter (fn [context] ,,,)})
(route/expand-routes
#{["/user/:id" :post [,,, new-user-intc] :constraints {:id #"[0-9]+"}]
["/user/:id" :get [,,, view-user-intc] :constraints {:id #"[0-9]+"}]})