rename fooditems to products

This commit is contained in:
Bart Akeley 2020-04-17 22:50:52 -05:00
parent 50de03fb66
commit 163fac88e0
2 changed files with 3 additions and 3 deletions

View file

@ -29,7 +29,7 @@
(POST "/faves" [] faves-get-handler)
(PUT "/fave" [] faves-put-handler)
(DELETE "/fave" [] faves-delete-handler)
(GET "/fooditems/:search" [] heb-search-handler))
(GET "/products/:search" [] heb-search-handler))
(def app-config (assoc-in api-defaults [:security :anti-forgery] false))

View file

@ -162,5 +162,5 @@
(let [search (get-in req [:params :search])]
(println (str "/heb/" search))
(if-not (empty? search)
(safe-json {:fooditems (memoized-search-heb search)})
(safe-json {:fooditems []}))))
(safe-json {:products (memoized-search-heb search)})
(safe-json {:products []}))))