   (POST "/api/environments/:id/status" request (put-environment-status! (get-in request [:params :id]) (get-in request [:body :status])))
   (POST "/api/environments" request (put-environment! (get-in request [:body :environment])))
 
+  (GET "/api/valuestreams" [] (get-value-streams))
   (GET "/api/valuestreams/:id" [id] (get-value-stream id))
 
   (route/not-found "Not Found"))

                   :environment {:name "PROD"}
                   :duration    234523}]
    })
  )


(defroutes app-routes
  (GET "/" [] (service-data))

  [environment]
  (response (decorate-environment (store/put-document environments environment))))

(defn value-stream
  []
  {
    :id          (util/uuid)
    :name        "unique-name"
    :timestamp   (util/timestamp)
    :artifact    {:id "some-unique-identifier" :version "1.0.1"}
    :lead_time   91237842
    :commits     []
