Fix for example: Request format is mandatory

Like documented in the example: https://github.com/Day8/re-frame-http-fx#step-2-registration-and-use
This commit is contained in:
Joscha 2017-03-25 14:27:16 +01:00 committed by GitHub
parent 41ec2a3798
commit 873f7206fc
1 changed files with 1 additions and 0 deletions

View File

@ -143,6 +143,7 @@ Here's our rewrite:
;; we return a map of (side) effects
{:http-xhrio {:method :get
:uri "http://json.my-endpoint.com/blah"
:format (ajax/json-request-format)
:response-format (ajax/json-response-format {:keywords? true})
:on-success [:process-response]
:on-failure [:bad-response]}