             [done.session :as session]
             ))
 
+; routes to create a session (login)
 (defroutes session-routes
   (POST "/" [email password]
         (let [credentials {:email email :password password}

           {:status 404 :body "Session not found"}
           (session/expand-session (session :value))))))

(defroutes dones-routes
  (POST "/" {{text :text} :params cookies :cookies}
        (let [session (cookies "session")]

                  "failure" {:status 500 :body "Error while deleting resource"}))))))


; routes to create users
(defroutes users-routes
  (GET "/:username" [username] (str "hello " username))

