             [buddy.auth.backends.session :refer [session-backend]]
             [buddy.auth.middleware :refer [wrap-authentication wrap-authorization]]
 
-            [buddy.hashers :as hs]))
+            [buddy.hashers :as hashers]))
 
 (def uri "datomic:dev://localhost:4334/movement8")
 (def conn (d/connect uri))

                                                                              categories))))

           (GET "/user/:id" [id] (generate-response (str "Hello user " id)))

           (not-found "Not Found"))

(def app

(def auth-backend
  (session-backend {:unauthorized-handler unauthorized-handler}))

(defn home [req]
  (when (not (authenticated? req))
    (throw-unauthorized {:message "Not authorized"}))
  (render-file "templates/index.html" {:dev (env :dev?)}))
