Skip to content

Instantly share code, notes, and snippets.

@256BitChris
Created February 20, 2018 15:38
Show Gist options
  • Save 256BitChris/6ddf0a8cccd3d7074dfeeb26847edfe1 to your computer and use it in GitHub Desktop.
Save 256BitChris/6ddf0a8cccd3d7074dfeeb26847edfe1 to your computer and use it in GitHub Desktop.
Artifact Request Example
(defn artifact-request [{:keys [:token :uri] :as input}]
(let [data (-> (process-token input)
process-uri
retrieve-permissions)]
(if (has-permissions? data)
(retrieve-file data)
(unauthorized))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment