     "/1.x/envs/:env-name" "Read and evaluate the environment configuration :env-name.clj from GIT repository :env-name, return the configuration in JSON"
     "/1.x/envs/:env-name/apply" "Apply the environment configuration"
     "/1.x/envs/:env-name/apps" "All available applications for the given environment"
+    "/1.x/envs/:env-name/schedule" "Shows the current shuppet schedule, if any"
     "/1.x/envs/:env-name/apps/apply" "Apply configuration for all applications listed in Onix"
     "/1.x/envs/:env-name/apps/:app-name" "Read the application configuration :app-name.clj from GIT repository :app-name and evaluate it with the environment configuration, return the configuration in JSON. Master branch is used for all environments except for production where prod branch is used instead."
     "/1.x/envs/:env-name/apps/:app-name/apply" "Apply the application configuration for the given environment")

  (:require
   [shuppet
    [core :as core]
    [middleware :as middleware]]
   [slingshot.slingshot :refer [try+ throw+]]
   [clojure.data.json :refer [write-str]]
   [compojure.core :refer [defroutes context GET PUT POST DELETE]]

       [env]
       (list-apps env))

  (GET "/:env/apps/apply"
       [env]
       (apply-apps-config env))

  (GET "/:env/schedule"
        [env]
        (get-schedule env))

  (POST "/:env/schedule"
        [env action interval]
        (schedule env action interval))

  (GET "/:env/apps/:name"
       [env name]
