Fork me on GitHub
#ring
<
2022-03-03
>
jumar04:03:01

There was another discussion about this. OP should have mentioned that https://clojurians.slack.com/archives/C8860D6BS/p1646233044822329

zendevil.eth18:03:14

is there a ring middleware that converts a req like so:

(-> session
      (request "/api/reset-password"
               :content-type "application/json"
               :request-method :post
               :body (cc/generate-string
                      {:email email
                       :newPassword newPassword
                       :resetToken token}
                      )))
to have body-params in the server?

sova-soars-the-sora22:03:46

are you building a ring server from scratch? would highly recommend taking a working one and then modifying it to fit your needs.