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

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

      site-routes route-data system (reitit-auth system)))
  ([site-routes {:keys [main-api-routes-fn plugins-api-routes-fns]} system opts]
    (fn [req]
      (let [api-version (ous-request/accept-api-version system req)
            plugins-api-routes (vec (mapcat #(% system api-version) plugins-api-routes-fns))
            api-routes (vec (main-api-routes-fn system api-version))
            routes (concat (vec site-routes) plugins-api-routes api-routes)
