    [braid.server.db.user :as user]
    [braid.server.events :as events]
    [braid.server.markdown :refer [markdown->hiccup]]
-   [braid.server.routes.helpers :refer [current-user current-user-id logged-in?
-                                        error-response edn-response session-token]]
+   [braid.server.routes.helpers :as helpers :refer [error-response edn-response]]
    [braid.server.s3 :as s3]
    [clojure.java.io :as io]
    [clojure.string :as string]


  ; get current logged in user
  (GET "/session" req
    (if-let [user (current-user req)]
      (edn-response {:user user
                     :csrf-token (session-token)})
      {:status 401 :body "" :session nil}))

  ; log out


        :else
        (do
          (events/user-join-group! (helpers/current-user-id req) group-id)
          (edn-response {:status "OK"})))))

  (GET "/changelog" []
