         schema (protograph/graph-structure protograph)
         mongo (mongo/connect! (get config :mongo))
         routes (polaris/build-routes (ophion-routes graph search schema mongo))
-        router (resource/wrap-resource (polaris/router routes) "public")
+        router (polaris/router routes) "public"
         app (-> router
                 (resource/wrap-resource "public")
                 (keyword/wrap-keyword-params)


(defn query-comparison-handler
  [mongo request]
  (let [queries (json/parse-stream (InputStreamReader. (:body request)) keyword)
        comparison (store/query-comparison mongo (:queries queries))]
    (log/info "queries" queries)
    {:status 200


(defn save-query-handler
  [graph search mongo request]
  (let [query (read-json (:body request))
        relevant (select-keys query [:user :key :focus :path :query :current])]
    (log/info query)
    (store/store-query {:graph graph :search search} mongo relevant)
