diff --git a/src/clj/commiteth/routes/services.clj b/src/clj/commiteth/routes/services.clj index c636671..ae1d981 100644 --- a/src/clj/commiteth/routes/services.clj +++ b/src/clj/commiteth/routes/services.clj @@ -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