 (defn- api-options
   []
   (merge {:filter "all" :all-pages true} (gh-auth)))
+
+(defn create-webhook []
+  (create-hook "cldwalker" "gh-waiting-room" "web"
+               {:url "http://localhost:8080/webhook" :content_type "json"}
+               (assoc (gh-auth) :events ["issues"])))
 
 (defn- issue-filter
   [issue]

              [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
