     "/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")

  (core/clean-config env name)
  (response {:message (str "Succesfully cleaned the configuration for application " name)}))

(defn- apps-apply
  [env]
  (core/apply-config env)
  (core/update-configs env))

(defn- apply-apps-config
  [env]
  (apps-apply env)
  (response  {:message (str "Started applying the configuration for all applications in environment " env "."
                            "Please check the campfire room '" cf-error-room  "' for any error cases.")}))


       [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]
