mirror of
https://github.com/status-im/re-frame.git
synced 2025-02-22 14:58:12 +00:00
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:
parent
41ec2a3798
commit
873f7206fc
@ -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]}
|
||||
|
Loading…
x
Reference in New Issue
Block a user