Created
February 20, 2018 15:38
-
-
Save 256BitChris/6ddf0a8cccd3d7074dfeeb26847edfe1 to your computer and use it in GitHub Desktop.
Artifact Request Example
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
(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