 ; (json/json-str (matrix (double-array [1 Double/NaN 3])))
 ; (json/json-str (matrix [(double-array [1 Double/NaN 3])]))
 
+;
 ; liberator handler for simple values
 ;
 

  (:require [cavm.query.sources :as sources])
  (:require [ring.util.codec :as codec])
  (:require [ring.util.response :as response ])
  (:require [clojure.edn :as edn])
  (:require [clojure.data.json :as json])
  (:require [cavm.h2 :as h2])


; XXX add the custom pattern #".+" to avoid nil, as above?
(defroutes routes
  (GET "/data/:exp" [exp] (expression exp))
  (POST "/data/" r (expression (body-string r)))
  (POST "/update/" [file :as {ip :remote-addr
                              loader :loader}] (loader-request ip loader file))
  (not-found "not found"))
