     (catch Exception e (errorf "Error %s" (.toString e)))))
 
 (defroutes routes
-           ;; Views
-           (GET "/" [] loading-page)
-           (GET "/add" [] loading-page)
-           (GET "/about" [] loading-page)
-           (GET "/cards" [] cards-page)
-           (GET "/select" [] loading-page)
-           (GET "/search" [] loading-page)
+  ;; Views
+  (GET "/" [] loading-page)
+  (GET "/add" [] loading-page)
+  (GET "/about" [] loading-page)
+  (GET "/cards" [] cards-page)
+  (GET "/select" [] loading-page)
+  (GET "/search" [] loading-page)
 
-           ;; API
-           (GET "/api/bookmarks" {params :params} [] (get-bookmarks params))
-           (POST "/api/bookmarks" {params :edn-params} (post-bookmark params))
-           (PUT "/api/bookmarks/:id" {id :id params :edn-params} [] (put-bookmark id params))
-           (DELETE "/api/bookmarks/:id" [id] (delete-bookmark id))
+  ;; API
+  (GET "/api/bookmarks" {params :params} [] (get-bookmarks params))
+  (GET "/api/bookmarks/:id" {id :id params :params} [] (get-bookmark id params))
+  (POST "/api/bookmarks" {params :edn-params} (post-bookmark params))
+  (PUT "/api/bookmarks/:id" {id :id params :edn-params} [] (put-bookmark id params))
+  (DELETE "/api/bookmarks/:id" [id] (delete-bookmark id))
 
-           (resources "/")
-           (not-found "Not Found"))
-
-;(def app (wrap-middleware #'routes))
+  (resources "/")
+  (not-found "Not Found"))
 
 (def app
   (-> #'routes

       :headers (if (= (:csrf-token params) "true")
                  (assoc headers "csrf-token" *anti-forgery-token*)
                  headers)
       :body (str bookmarks)})
  (catch Exception e (errorf "Error %s" (.toString e)))))

(defn post-bookmark
  "Add a bookmark into the database for an HTTP request."
  [params & [status]]
  (try
    (infof "post-bookmark %s" params)

                      :bookmark/id id})})
  (catch Exception e (errorf "Error %s" (.toString e)))))

(defn put-bookmark "Upsert a bookmark in the database for an HTTP request."
  [id params & [status]]
  (try
    (infof "put-bookmark %s %s" id params)
