Skip to content

Instantly share code, notes, and snippets.

@minimal
Created January 18, 2010 02:02
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 minimal/279728 to your computer and use it in GitHub Desktop.
Save minimal/279728 to your computer and use it in GitHub Desktop.
(GET "/queue/:id" [{:headers {"Content-Type" "application/json"}}]
(let [res (poll-queue-for-messages (params :id))]
(if (pos? (count res))
(json-str res)
304)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment