 (ns lens.app
   (:use plumbing.core)
-  (:require [bidi.bidi :as bidi]
+  (:require [clojure.tools.logging :as log]
+            [bidi.bidi :as bidi]
             [bidi.ring :as bidi-ring]
             [io.clojure.liberator-transit]
             [ring.middleware.params :refer [wrap-params]]

      resp
      {:status 404})))

(defnk app [db-uri context-path :as opts]
  (assert (re-matches #"/(?:.*[^/])?" context-path))
  (let [routes (routes context-path)

        (wrap-cors)
        (wrap-connection db-uri)
        (wrap-keyword-params)
        (wrap-params)
        (wrap-log))))
