   "Run workspace"
   (yaml-response "run-workspace stub"))
 
-
 ;; API Definition
 ;;
 ;; Everything in the /api context is a workspace

(defroutes api-routes
  (context "/api" []
    (POST "/" [__anti-forgery-token workspace] (save-workspace workspace))
    (GET "/" [] (load-workspace))))

            [compojure.core :refer :all]
            [cheshire.core :as json]
            [clojure.java.io :as io]
            [clj-yaml.core :as yaml]
            [webui.db.core :as db]
            )
  (:use [taoensso.timbre :only [trace debug info warn error fatal]]))

(def savedir "/tmp")

;; TODO Read http://www.luminusweb.net/docs/responses.md
;; for proper encoding reponses
(defn json-response [data & [status]]
  "Returns a proper application/json response"
  {:status (or status 200)
