mirror of
https://gitlab.com/wheres-the-tp/server.git
synced 2026-01-25 06:14:55 -06:00
rename fooditems to products
This commit is contained in:
parent
50de03fb66
commit
163fac88e0
2 changed files with 3 additions and 3 deletions
|
|
@ -29,7 +29,7 @@
|
||||||
(POST "/faves" [] faves-get-handler)
|
(POST "/faves" [] faves-get-handler)
|
||||||
(PUT "/fave" [] faves-put-handler)
|
(PUT "/fave" [] faves-put-handler)
|
||||||
(DELETE "/fave" [] faves-delete-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))
|
(def app-config (assoc-in api-defaults [:security :anti-forgery] false))
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -162,5 +162,5 @@
|
||||||
(let [search (get-in req [:params :search])]
|
(let [search (get-in req [:params :search])]
|
||||||
(println (str "/heb/" search))
|
(println (str "/heb/" search))
|
||||||
(if-not (empty? search)
|
(if-not (empty? search)
|
||||||
(safe-json {:fooditems (memoized-search-heb search)})
|
(safe-json {:products (memoized-search-heb search)})
|
||||||
(safe-json {:fooditems []}))))
|
(safe-json {:products []}))))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue