Skip to content

Instantly share code, notes, and snippets.

@travis
Created January 28, 2014 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save travis/8671213 to your computer and use it in GitHub Desktop.
Save travis/8671213 to your computer and use it in GitHub Desktop.
(.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))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment