Skip to content

Commit

Permalink
fix uberjar creation by following suggestion here pedestal/pedestal#3…
Browse files Browse the repository at this point in the history
  • Loading branch information
mavbozo committed Jan 29, 2015
1 parent 858044f commit 992c0f0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/ctor_errors/service.clj
Expand Up @@ -3,7 +3,7 @@
[io.pedestal.http.route :as route]
[io.pedestal.http.body-params :as body-params]
[io.pedestal.http.route.definition :refer [defroutes]]
[io.pedestal.interceptor.helpers :refer [defbefore]]
[io.pedestal.interceptor.helpers :as helpers]
[ring.util.response :as ring-resp]))

(defn about-page
Expand All @@ -17,9 +17,10 @@
(ring-resp/response "Hello World!"))


(defbefore my-page
[ctx]
(assoc ctx :response (ring-resp/response "this is my page")))
(def my-page
(helpers/before
::my-page
(fn [ctx] (assoc ctx :response (ring-resp/response "this is my page")))))

(defroutes routes
[[["/" {:get home-page}
Expand Down

0 comments on commit 992c0f0

Please sign in to comment.