         {:status 200}))
     (route/not-found "Not Found")))
 
-;; Copies the body into a new attributed called :body-copy so that after a post of form content type
+;; Copies the body into a new attribute called :body-copy so that after a post of form content type
 ;; the original body can still be read. The default ring params reads the body and parses it and we
 ;; don't have access to it.
 (defn copy-of-body-handler

                :body-copy body
                :body (java.io.ByteArrayInputStream. (.getBytes body)))))))

(defn make-api [system]
  (-> (build-routes system)
      (http-trace/build-request-context-handler system)
      errors/exception-handler
      handler/site
      copy-of-body-handler
      ring-json/wrap-json-body
      ring-json/wrap-json-response))

(def CURL_CLIENT_ID "curl")
(def UNKNOWN_CLIENT_ID "unknown")

(def supported-content-types
  "The content types supported by search"
  #{"application/x-www-form-urlencoded"})

(def extension->mime-type
  "A map of URL file extensions to the mime type they represent."
  {"json" "application/json"
