Optimization: only provide needed repo map keys
This commit is contained in:
parent
a4aafa1bd3
commit
8812157789
|
@ -51,7 +51,9 @@
|
|||
(GET "/user/repositories" []
|
||||
:auth-rules authenticated?
|
||||
:current-user user
|
||||
(ok {:repositories (github/list-repos (:token user))}))
|
||||
(ok {:repositories (->> (github/list-repos (:token user))
|
||||
(map #(select-keys %
|
||||
[:id :html_url :name :full_name :description])))}))
|
||||
(GET "/repositories" []
|
||||
:auth-rules authenticated?
|
||||
:current-user user
|
||||
|
|
Loading…
Reference in New Issue