 
    (GET "/forms/:id/count" [db id] (form-count db id))
 
-   (POST "/forms/:id/search-item-groups" [db id query]
+   (GET "/forms/:id/search-item-groups" [db id query]
          (search-item-groups db id query))
 
    (GET "/item-groups/:id" [db id] (item-group db id))
 
    (GET "/item-groups/:id/count" [db id] (item-group-count db id))
 
-   (POST "/item-groups/:id/search-items" [db id query]
+   (GET "/item-groups/:id/search-items" [db id query]
          (search-items db id query))
 
    (GET "/items/:id" [db id] (item db id))


(defn search-item-groups-form [form]
  {:action (str "/forms/" (:form/id form) "/search-item-groups")
   :method "POST"
   :title (str "Search Item Groups of Form " (:form/id form))
   :params
   {:query

  (:use plumbing.core)
  (:require [clojure.string :as str]
            [clojure.edn :as edn]
            [compojure.core :as compojure :refer [GET DELETE]]
            [ring.util.response :as ring-resp]
            [cemerick.url :as url]
            [lens.reducers :as lr]
