   "Custom ring middleware for CMR OPeNDAP."
   (:require
    [clojusc.twig :refer [pprint]]
-   [cmr.ous.util.http.request :as request]
+   [cmr.ous.util.http.request :as ous-request]
+   [cmr.http.kit.app.middleware :as middleware]
+   [cmr.http.kit.request :as request]
    [cmr.http.kit.response :as response]
    [cmr.metadata.proxy.components.auth :as auth]
    [reitit.ring :as ring]

        (log/debug "Made routes:" (pprint routes))
        (response/version-media-type
          (handler req)
          (request/accept-media-type-format system req))))))


  For more details, see the docstring above for `wrap-auth`."
  {:data
    {:middleware [#(-> %
                       middleware/wrap-request-id
                       (wrap-auth system))]}})

(defn wrap-api-version-dispatch
  ""
