    [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]

  (PUT "/groups" [name slug type :as req]
    (cond
      ; logged in?
      (not (logged-in? req))
      (error-response 401 "Must be logged in.")

      ; group name validations

    (let [group-id (java.util.UUID/fromString group-id)]
      (cond
        ; logged in?
        (not (helpers/logged-in? req))
        (error-response 401 "Must be logged in.")

        ; public group?
