Created
January 28, 2014 16:35
-
-
Save travis/8671213 to your computer and use it in GitHub Desktop.
Revisions
-
travis created this gist
Jan 28, 2014 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ (.get "/builds" (-> (fn [request response] (go (try (let [user (<? (fetch (express/current-user))) builds (<? (domain/recent-builds user))] (.send response 200 (str (map #(parse-object-map % [:id]) builds)))) (catch :default e (log-exception e) (.send response 500 "error loading builds"))))) express/force-login))