                                                                               categories))))
 
            (GET "/user/:id" [id] (generate-response (str "Hello user " id)))
-
+           (resources "/")
            (not-found "Not Found"))
 
 (def app

(def authdata {:admin "pw"
               :test "pw"})

(defn unauthorized-handler
  [request metadata]
  ;; If request is authenticated, raise 403 instead
  ;; of 401 (because user is authenticated but permission
  ;; denied is raised).

(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?)}))
