Created
July 9, 2010 19:32
-
-
Save swannodette/469929 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.mongo | |
(:use aleph) | |
(:use karras.core | |
karras.collection | |
karras.sugar)) | |
(def dummy (collection (connect) :dummy :foo)) | |
(defn my-save [request] | |
(future | |
(insert dummy {:bar "test"}) | |
(respond! request | |
{:status 200 | |
:headers {"Content-Type" "text/html"} | |
:body "Saved!"}))) | |
(run-aleph my-save {:port 8080}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment