             [ring.adapter.jetty :as jetty]
             [ring.middleware.resource :as resources]
             [ring.middleware.file :as midfile]
+            [ring.middleware.multipart-params :as multi]
             [com.keminglabs.jetty7-websockets-async.core :as ws]
             [clojure.core.async :refer [go close! <! >! <!! sliding-buffer chan timeout]]
             [crypto.random :as random]

                wrap-flexfile
                (wrap-resource-add-type "public/")
                wrap-params
                wrap-enum-sessions
                (session/wrap-session {:store (cookie-store {:key (get-cookie-key @session-manager)})})
                wrap-rule-check

     (recur)))
  )
  
(defn upload-tmp-store [upload-key]
  (println "!!! get uplaod key:" upload-key))

(defn start-server [host port]
  (if (nil? @session-manager) (reset! session-manager 
