                                   (map-indexed (fn [num elem]
                                                  (assoc elem :position (inc num)))))})))
 
+(defn webhook-page
+  [request]
+  (prn request)
+  (prn "PARAMS" (-> request :params))
+  {:status 200})
+
 (defon-response html-content-type
   [response]
   (ring-resp/content-type response "text/html"))

              [io.pedestal.service.interceptor :refer [defon-response]]
              [clostache.parser :refer [render-resource]]
              [tentacles.issues :refer [my-issues]]
              clojure.string
              [ring.util.response :as ring-resp]))

(def db (atom {}))

(defroutes routes
  [[["/" {:get home-page}
     ^:interceptors [(body-params/body-params) html-content-type]
     ["/webhook" {:post webhook-page}]
     ]]])

;; You can use this fn or a per-request fn via io.pedestal.service.http.route/url-for
