                           (.-body js/document)))]
     (http-get "http://localhost:8090/bookmarks" onres)))
 
-(defroute bookmark-path "/addbookmark" []
-  (r/render [cb/page](.-body js/document)))
+(defroute bookmark-path "/bookmark" []
+  (r/render [page](.-body js/document)))
 
 (defroute "*" []
-  (js/alert "<h1>Not Found</h1>"))
+  (js/alert "<h1>Not Found Page</h1>"))
 
 
 (defn main

        [:td (he/url-format (.-url bm) (.-title bm))]
        [:td (.-description bm)]])]]])


(defroute home-path "/" []
  (let [onres (fn [json]

            [goog.net.XhrIo :as xhr]
            [reagent.core :as r]
            [bookmarks.helpers :as he]
            [bookmarks.createbookmarks :as cb]
            [cognitect.transit :as t]
            [goog.structs :as structs])
  (:import goog.History)
  )


(defn url-format [url title]
  [:a {:href url :class "btn btn-primary"} title])

(def w (t/writer :json-verbose))

(defn getdata [res]
  (.getResponseJson (.-target res)))
