keechma

Keechma stack. Mention @U050986L9 or @U2J1PHYNM if you have any questions
fsd 2021-02-02T20:51:21.005500Z

Hi @mihaelkonjevic, I had a quick question, the follow code snippet is from api.cljs in keechma, I have added the request payload by looking at realworld app example. I am trying to add cookie in the request headers of a ajax request not did not find any information on that would you please help me, how do I add cookie in the header or how do I add request headers?

(def default-request-config
  {:response-format :json, :keywords? true, :format :json})

(defn get-list 
  [req]
  (POST
    (str "localhost:3000/getItem")
    (assoc
      default-request-config
      :params 
      (merge
        {
         :date "02/14/2021"
         :ItemID 678
        }))))