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


(defn search-items-form [item-group]
  {:action (str "/item-groups/" (:item-group/id item-group) "/search-items")
   :method "POST"
   :title (str "Search Items of Item Group " (:name item-group))
   :params
   {:query


   (GET "/forms/:id/count" [db id] (form-count db id))

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

   (GET "/item-groups/:id/search-items" [db id query]
         (search-items db id query))

   (GET "/items/:id" [db id] (item db id))
