         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)

;;   (Logger/ROOT_LOGGER_NAME))
;;  Level/INFO)

(defn append-newline
  [s]
  (str s "\n"))


(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)
