 (ns onix.web
-    (:require [compojure.core :refer [defroutes context GET PUT POST DELETE]]
+  (:require [onix.persistence :as persistence])
+  (:require   [cheshire.core :as cheshire]
+              [compojure.core :refer [defroutes context GET PUT POST DELETE]]
               [compojure.route :as route]
               [compojure.handler :as handler]
               [ring.middleware.format-response :refer [wrap-json-response]]

                                :version *version*
                                :success true}))})

(defroutes routes
  (context
   "/1.x" []

        [] "pong")

   (GET "/status"
        [] (status))

   (context "/applications"
            [] applications-routes))

  (route/not-found (error-response "Resource not found" 404)))

(def app
  (-> routes
