Created
July 10, 2010 01:58
-
-
Save swannodette/470350 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns second-post.memory | |
(:use aleph)) | |
(def db (atom [])) | |
(defn save [request] | |
(future | |
(swap! db conj {:bar "test"}) | |
(respond! request | |
{:status 200 | |
:headers {"Content-Type" "text/html"} | |
:body "Saved!"}))) | |
(run-aleph save {:port 8080}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment